#5629 Trigger main window show event before opening activation dialog

This commit is contained in:
Andrew Nelless 2016-10-04 10:45:27 +01:00
parent 15a6a27dc6
commit 603b12dc59
1 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,8 @@ MainWindow::MainWindow(QSettings& settings, AppConfig& appConfig) :
} }
void void
MainWindow::showEvent(QShowEvent*) { MainWindow::showEvent(QShowEvent* event) {
QMainWindow::showEvent (event);
if (!m_AppConfig.activationHasRun() && (m_AppConfig.edition() == Unregistered)) { if (!m_AppConfig.activationHasRun() && (m_AppConfig.edition() == Unregistered)) {
ActivationDialog activationDialog (this, m_AppConfig); ActivationDialog activationDialog (this, m_AppConfig);
activationDialog.exec(); activationDialog.exec();