Skip to content

Commit

Permalink
add project filename to title bar on load
Browse files Browse the repository at this point in the history
  • Loading branch information
jveitchmichaelis committed Oct 14, 2019
1 parent 3638276 commit 35ffde6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,10 @@ void MainWindow::openProject(QString fileName)
settings->setValue("project_folder", QFileInfo(fileName).absoluteDir().absolutePath());
if(project->loadDatabase(fileName)){
initDisplay();
setWindowTitle("DeepLabel - " + fileName);
}else{
QMessageBox::warning(this,tr("Remove Image"), tr("Failed to open project."));
setWindowTitle("DeepLabel");
}
}

Expand Down

0 comments on commit 35ffde6

Please sign in to comment.