Skip to content

Commit

Permalink
fixed wrong result from QMessageBox
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazzco authored and MrMontag committed Jun 27, 2024
1 parent 3b5f9c7 commit 07956b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Version 1.18.4
==================
- fixed incomplete search results when searching in `This Project`
- fixed incomplete selection in LST file when using the scroll action
- fixed wrong behavior on overwriting a file from the welcome page or the model library
- fixed explicit solver name not recognized by NEOS
- upgraded to Qt 6.7.2

Expand Down
4 changes: 2 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1099,12 +1099,12 @@ void MainWindow::openModelFromLib(const QString &glbFile, const QString &modelNa
int answer = msgBox.exec();

switch(answer) {
case 0: {// open
case 2: {// open
PExProjectNode* project = openInCurrent ? mRecent.project() : nullptr;
openFileNode(addNode("", gmsFilePath, project));
return;
}
case 1: // replace
case 3: // replace
fm->renameToBackup();
// and continue;
break;
Expand Down

0 comments on commit 07956b6

Please sign in to comment.