From 5981085fa98a7cc785524f89f107cc7ff43c8b42 Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sun, 26 Nov 2017 22:55:09 +0100 Subject: 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. --- src/file-update.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3