Commit 2e9d52df authored by twanvl's avatar twanvl

correct parent for file open dialog in ImageValueEditor

parent b7457a59
...@@ -20,7 +20,7 @@ IMPLEMENT_VALUE_EDITOR(Image) {} ...@@ -20,7 +20,7 @@ IMPLEMENT_VALUE_EDITOR(Image) {}
bool ImageValueEditor::onLeftDClick(const RealPoint&, wxMouseEvent&) { bool ImageValueEditor::onLeftDClick(const RealPoint&, wxMouseEvent&) {
String filename = wxFileSelector(_("Open image file"), _(""), _(""), _(""), 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"), _("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()) { if (!filename.empty()) {
sliceImage(wxImage(filename)); sliceImage(wxImage(filename));
} }
......
...@@ -3816,6 +3816,10 @@ ...@@ -3816,6 +3816,10 @@
</File> </File>
</Filter> </Filter>
</Filter> </Filter>
<Filter
Name="cli"
Filter="">
</Filter>
<File <File
RelativePath=".\code_template.cpp"> RelativePath=".\code_template.cpp">
<FileConfiguration <FileConfiguration
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment