fix a bug where level in xsheet gets replaced when cancelling saving
This commit is contained in:
parent
262def1c41
commit
bc5b96b132
1 changed files with 5 additions and 1 deletions
|
@ -1531,7 +1531,11 @@ bool IoCmd::saveLevel(const TFilePath &path) {
|
|||
if (realPath.getType() == "")
|
||||
realPath = TFilePath(realPath.getWideString() + ::to_wstring(dotts + ext));
|
||||
|
||||
saveLevel(realPath, sl, false);
|
||||
bool ret = saveLevel(realPath, sl, false);
|
||||
if(!ret){ //save level failed
|
||||
return false;
|
||||
}
|
||||
|
||||
RecentFiles::instance()->addFilePath(toQString(realPath), RecentFiles::Level);
|
||||
|
||||
TApp::instance()
|
||||
|
|
Loading…
Reference in a new issue