mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-06 03:39:51 +00:00
Fix for issue #143: Do not call FileList::setCurrentFolder() with start_folder = NULL.
It's strange why start_folder could be NULL in this case, but there is a chance that FileSystemModule::getFileItemFromPath() fails and returns NULL.
This commit is contained in:
parent
14f24b1181
commit
b090629897
@ -280,7 +280,8 @@ base::string FileSelector::show(const base::string& title,
|
||||
center_window();
|
||||
|
||||
m_fileList->setExtensions(showExtensions.c_str());
|
||||
m_fileList->setCurrentFolder(start_folder);
|
||||
if (start_folder)
|
||||
m_fileList->setCurrentFolder(start_folder);
|
||||
|
||||
// current location
|
||||
navigation_position.reset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user