summaryrefslogtreecommitdiffstats
path: root/src/dialogs/export.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs/export.cpp')
-rw-r--r--src/dialogs/export.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dialogs/export.cpp b/src/dialogs/export.cpp
index 31e978f86..43824dec5 100644
--- a/src/dialogs/export.cpp
+++ b/src/dialogs/export.cpp
@@ -1376,7 +1376,7 @@ sp_export_browse_clicked (GtkButton */*button*/, gpointer /*userdata*/)
wcsncpy(_filename, (wchar_t*)utf16_path_string, _MAX_PATH);
g_free(utf16_path_string);
- opf.hwndOwner = (HWND)(GDK_WINDOW_HWND(GTK_WIDGET(dlg)->window));
+ opf.hwndOwner = (HWND)(GDK_WINDOW_HWND(gtk_widget_get_window(GTK_WIDGET(dlg))));
opf.lpstrFilter = filter_string;
opf.lpstrCustomFilter = 0;
opf.nMaxCustFilter = 0L;