mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
bugfix save as
This commit is contained in:
@@ -115,7 +115,7 @@ std::string DialogToolkit::saveSessionFileDialog(const std::string &path)
|
||||
#endif
|
||||
|
||||
std::string extension = filename.substr(filename.find_last_of(".") + 1);
|
||||
if (extension != "mix")
|
||||
if (!filename.empty() && extension != "mix")
|
||||
filename += ".mix";
|
||||
|
||||
return filename;
|
||||
|
||||
Reference in New Issue
Block a user