mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 04:19:12 +00:00
Dispose the native file selector regardless its return code
This commit is contained in:
parent
9abb9f1dad
commit
3f7e0b920a
@ -55,10 +55,10 @@ std::string show_file_selector(const std::string& title,
|
||||
dlg->addFilter("*." + tok, tok + " files (*." + tok + ")");
|
||||
dlg->addFilter("*.*", "All files (*.*)");
|
||||
|
||||
if (dlg->show(she::instance()->defaultDisplay()->nativeHandle())) {
|
||||
if (dlg->show(she::instance()->defaultDisplay()->nativeHandle()))
|
||||
res = dlg->getFileName();
|
||||
dlg->dispose();
|
||||
}
|
||||
|
||||
dlg->dispose();
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user