From 298fd6cf3e3310bb79dfae82f3ff0641d4577b66 Mon Sep 17 00:00:00 2001 From: Andreas Stallinger Date: Mon, 18 Apr 2016 11:08:44 +0200 Subject: [PATCH] ui: Enterlicense quit button Quit button only for forced enterlicensewindow --- src/lib_gui/qt/window/QtMainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib_gui/qt/window/QtMainWindow.cpp b/src/lib_gui/qt/window/QtMainWindow.cpp index a9e02706..d4d2ef37 100644 --- a/src/lib_gui/qt/window/QtMainWindow.cpp +++ b/src/lib_gui/qt/window/QtMainWindow.cpp @@ -272,12 +272,11 @@ void QtMainWindow::forceEnterLicense() LOG_ERROR("No enter license window on top of stack"); return; } - enterLicenseWindow->clear(); - enterLicenseWindow->setCancelAble(false); this->setEnabled(false); enterLicenseWindow->setEnabled(true); + enterLicenseWindow->setCloseVisible(true); } bool QtMainWindow::event(QEvent* event) @@ -341,6 +340,7 @@ void QtMainWindow::enterLicense() connect(enterLicenseWindow, SIGNAL(finished()), this, SLOT(activateWindow())); enterLicenseWindow->load(); + enterLicenseWindow->setCloseVisible(false); } void QtMainWindow::showStartScreen()