summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/launcherwindow.cc3
-rw-r--r--client/launcherwindow.h2
-rw-r--r--client/pracro.cc2
3 files changed, 4 insertions, 3 deletions
diff --git a/client/launcherwindow.cc b/client/launcherwindow.cc
index a97a1b7..e1c62eb 100644
--- a/client/launcherwindow.cc
+++ b/client/launcherwindow.cc
@@ -39,7 +39,8 @@ LauncherWindow::LauncherWindow(QString arg, QString cpr, QString templ, QWidget
setWindowTitle(tr("Pracro Launcher"));
resize(250,80);
- QSettings templateConfig(QFileInfo(arg).absolutePath() + "/templates.ini", QSettings::IniFormat);
+ QSettings templateConfig(QFileInfo(arg).
+absolutePath() + "/templates.ini", QSettings::IniFormat);
QLabel *cprLabel = new QLabel(tr("Patient ID:"));
cprLineEdit = new QLineEdit();
diff --git a/client/launcherwindow.h b/client/launcherwindow.h
index 038bb20..fc7670f 100644
--- a/client/launcherwindow.h
+++ b/client/launcherwindow.h
@@ -37,7 +37,7 @@ class LauncherWindow : public QDialog
Q_OBJECT
public:
- LauncherWindow(QString, QString, QWidget *parent = 0);
+ LauncherWindow(QString, QString, QString, QWidget *parent = 0);
~LauncherWindow();
QString getCpr();
QString getTemplate();
diff --git a/client/pracro.cc b/client/pracro.cc
index 337702e..2a6a109 100644
--- a/client/pracro.cc
+++ b/client/pracro.cc
@@ -179,7 +179,7 @@ int main(int argc, char *argv[])
fixedfont = &f;
if(cpr == CPR_DEFAULT || templ == TEMPLATE_DEFAULT) {
- LauncherWindow lwnd(cpr, templ);
+ LauncherWindow lwnd(argv[0], cpr, templ);
if(lwnd.exec() == QDialog::Accepted && lwnd.getCpr() != "") {
cpr = lwnd.getCpr();
templ = lwnd.getTemplate();