summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 3307ef8..2eb84c9 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -23,7 +23,7 @@
static const Settings _settings;
-MainWindow::MainWindow(bool primary, int screen, const QRect &screenRect, bool testMode, QWidget *parent) :
+MainWindow::MainWindow(bool primary, int screen, const QRect &screenRect, QWidget *parent) :
QWidget(parent),
m_ScreenRect(screenRect),
m_Primary(primary),
@@ -35,12 +35,15 @@ MainWindow::MainWindow(bool primary, int screen, const QRect &screenRect, bool t
setBackground();
+ // TODO: Check if testMode == false and greeter == NULL, if so display big error message
+ // instead of exiting/crashing
+
// display login dialog only in the main screen
int spaceY = screenRect.height() / 2;
if (showLoginForm()) {
- m_LoginForm = new LoginForm(testMode, this);
+ m_LoginForm = new LoginForm(this);
spaceY -= m_LoginForm->height() / 2;
int maxX = screenRect.width() - m_LoginForm->width();