mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 21:27:01 -04:00
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
This commit is contained in:
@@ -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 @@
|
|||||||
</File>
|
</File>
|
||||||
</Filter>
|
</Filter>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<Filter
|
||||||
|
Name="cli"
|
||||||
|
Filter="">
|
||||||
|
</Filter>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\code_template.cpp">
|
RelativePath=".\code_template.cpp">
|
||||||
<FileConfiguration
|
<FileConfiguration
|
||||||
|
|||||||
Reference in New Issue
Block a user