summaryrefslogtreecommitdiff
path: root/client/mainwindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/mainwindow.cc')
-rw-r--r--client/mainwindow.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index 700501f..680c235 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -53,6 +53,9 @@
#include "debug.h"
+// Declared in pracro.cc
+extern QString patientname;
+
class Dbg : public QLabel {
public:
Dbg() {
@@ -99,7 +102,7 @@ MainWindow::MainWindow(QString patientid, QString course, QString templ,
this->course = course;
this->templ = templ;
- setWindowTitle("Pracro - " + patientid);
+ setWindowTitle("Pracro - " + patientid + ": " + patientname);
setWindowIcon(QIcon(":/icons/icon.png"));
QStatusBar *status = statusBar();
@@ -241,6 +244,8 @@ void MainWindow::closeEvent(QCloseEvent *event)
} else {
event->ignore();
}
+
+ emit isClosing();
}
void MainWindow::init()