From 35ffde62ce25a3f207ce9af0fe0c8bc9ab079800 Mon Sep 17 00:00:00 2001 From: Josh Veitch-Michaelis Date: Mon, 14 Oct 2019 18:21:52 +0100 Subject: [PATCH] add project filename to title bar on load --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index bb4a3b9..4925909 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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"); } }