summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-11-26 21:55:09 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-11-30 19:56:11 +0000
commit5981085fa98a7cc785524f89f107cc7ff43c8b42 (patch)
tree21a96c0768c31401f6ab500320d4a479d76595cf
parentFixes issue with extension not working in documents without a document height... (diff)
downloadinkscape-5981085fa98a7cc785524f89f107cc7ff43c8b42.tar.gz
inkscape-5981085fa98a7cc785524f89f107cc7ff43c8b42.zip
Make file update dialog transient for the main window
This ensures the (modal) dialog is positioned on top of the Inkscape window in which the file will be opened. Before it could happen that the dialog was not even on the same monitor as the Inkscape window leaving Inkscape in a seemingly inaccessible state if it was overlooked.
-rw-r--r--src/file-update.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file-update.cpp b/src/file-update.cpp
index 303a5c4f1..1d95b5d4c 100644
--- a/src/file-update.cpp
+++ b/src/file-update.cpp
@@ -318,6 +318,7 @@ void sp_file_convert_dpi(SPDocument *doc)
bool backup = prefs->getBool("/options/dpifixbackup", true);
if (INKSCAPE.use_gui() && sp_file_convert_dpi_method_commandline == -1) {
Gtk::Dialog scale_dialog(_("Convert legacy Inkscape file"));
+ scale_dialog.set_transient_for( *(INKSCAPE.active_desktop()->getToplevel()) );
scale_dialog.set_border_width(10);
scale_dialog.set_resizable(false);
Gtk::Label explanation;