mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-22 22:03:44 +03:00
virt-viewer: set transient parent for connection's error dialog
Commit c3d24f8b sets transient parent for the most part of the GtkDialogs, but seems like this one was forgotten.
This commit is contained in:
parent
5a07c59e8f
commit
a51c70771a
@ -915,7 +915,9 @@ virt_viewer_connect(VirtViewerApp *app)
|
||||
|
||||
if (!virt_viewer_app_initial_connect(app, &error)) {
|
||||
if (error != NULL) {
|
||||
GtkWidget *dialog = gtk_message_dialog_new(NULL,
|
||||
VirtViewerWindow *main_window = virt_viewer_app_get_main_window(app);
|
||||
|
||||
GtkWidget *dialog = gtk_message_dialog_new(virt_viewer_window_get_window(main_window),
|
||||
GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
GTK_MESSAGE_ERROR,
|
||||
GTK_BUTTONS_CLOSE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user