Skip to content

Commit

Permalink
Add placeholder to indicate whether current project or file is modifi…
Browse files Browse the repository at this point in the history
…ed (to avoid warning)
  • Loading branch information
guidotack committed Jul 29, 2015
1 parent 6b215f6 commit 41096ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MiniZincIDE/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1189,10 +1189,10 @@ void MainWindow::tabChange(int tab) {
}
if (curEditor->filepath.isEmpty()) {
setWindowFilePath(curEditor->filename);
setWindowTitle(curEditor->filename+p);
setWindowTitle(curEditor->filename+p+"[*]");
} else {
setWindowFilePath(curEditor->filepath);
setWindowTitle(curEditor->filename+p);
setWindowTitle(curEditor->filename+p+"[*]");
}
ui->actionSave->setEnabled(true);
ui->actionSave_as->setEnabled(true);
Expand Down Expand Up @@ -1247,7 +1247,7 @@ void MainWindow::tabChange(int tab) {
QFileInfo fi(projectPath);
p = "Project: "+fi.baseName();
}
setWindowTitle(p);
setWindowTitle(p+"[*]");
}
}
}
Expand Down

0 comments on commit 41096ee

Please sign in to comment.