From 7aef2948e28bbfedd4e9e7829b477b8e362b3431 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sat, 2 Aug 2008 17:10:11 +0000 Subject: [PATCH] correct parent for file open dialog in ImageValueEditor git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1035 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/value/image.cpp | 2 +- src/mse.vcproj | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/value/image.cpp b/src/gui/value/image.cpp index 62c7a21e..41f771fa 100644 --- a/src/gui/value/image.cpp +++ b/src/gui/value/image.cpp @@ -20,7 +20,7 @@ IMPLEMENT_VALUE_EDITOR(Image) {} bool ImageValueEditor::onLeftDClick(const RealPoint&, wxMouseEvent&) { String filename = wxFileSelector(_("Open image file"), _(""), _(""), _(""), _("All images|*.bmp;*.jpg;*.png;*.gif|Windows bitmaps (*.bmp)|*.bmp|JPEG images (*.jpg;*.jpeg)|*.jpg;*.jpeg|PNG images (*.png)|*.png|GIF images (*.gif)|*.gif|TIFF images (*.tif;*.tiff)|*.tif;*.tiff"), - wxOPEN); + wxOPEN, wxGetTopLevelParent(&editor())); if (!filename.empty()) { sliceImage(wxImage(filename)); } diff --git a/src/mse.vcproj b/src/mse.vcproj index f9de2549..12a9cea2 100644 --- a/src/mse.vcproj +++ b/src/mse.vcproj @@ -3816,6 +3816,10 @@ + +