8452: Geography : Attempting to print crashes (add parent to dialog)
This commit is contained in:
parent
f24ef15518
commit
96f2091ee9
@ -183,8 +183,8 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
WarningDialog(
|
WarningDialog(
|
||||||
_("Could Not Set a Bookmark"),
|
_("Could Not Set a Bookmark"),
|
||||||
_("A bookmark could not be set because "
|
_("A bookmark could not be set because "
|
||||||
"no one was selected."))
|
"no one was selected."),
|
||||||
|
parent=self.uistate.window)
|
||||||
|
|
||||||
def add_bookmark_from_popup(self, menu, handle):
|
def add_bookmark_from_popup(self, menu, handle):
|
||||||
if handle:
|
if handle:
|
||||||
@ -196,7 +196,8 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
WarningDialog(
|
WarningDialog(
|
||||||
_("Could Not Set a Bookmark"),
|
_("Could Not Set a Bookmark"),
|
||||||
_("A bookmark could not be set because "
|
_("A bookmark could not be set because "
|
||||||
"no one was selected."))
|
"no one was selected."),
|
||||||
|
parent=self.uistate.window)
|
||||||
|
|
||||||
def change_page(self):
|
def change_page(self):
|
||||||
"""
|
"""
|
||||||
@ -821,7 +822,8 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
from gramps.gui.dialog import WarningDialog
|
from gramps.gui.dialog import WarningDialog
|
||||||
WarningDialog(
|
WarningDialog(
|
||||||
_("You can't use the print functionality"),
|
_("You can't use the print functionality"),
|
||||||
_("Your Gtk version is too old."))
|
_("Your Gtk version is too old."),
|
||||||
|
parent=self.uistate.window)
|
||||||
return
|
return
|
||||||
|
|
||||||
req = self.osm.get_allocation()
|
req = self.osm.get_allocation()
|
||||||
@ -1014,7 +1016,8 @@ class GeoGraphyView(OsmGps, NavigationView):
|
|||||||
'bold_start' : '<b>',
|
'bold_start' : '<b>',
|
||||||
'bold_end' : '</b>',
|
'bold_end' : '</b>',
|
||||||
'title': '<b>' + place_title + '</b>',
|
'title': '<b>' + place_title + '</b>',
|
||||||
'gid': gids}
|
'gid': gids},
|
||||||
|
parent=self.uistate.window
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.mark = [None, None, None, None, None, None, None,
|
self.mark = [None, None, None, None, None, None, None,
|
||||||
|
Loading…
Reference in New Issue
Block a user