|
|
@@ -145,15 +145,8 @@ MainWindow::MainWindow(QSettings& settings, AppConfig& appConfig) : |
|
|
}
|
|
|
|
|
|
updateLocalFingerprint();
|
|
|
-}
|
|
|
|
|
|
-void
|
|
|
-MainWindow::showEvent(QShowEvent* event) {
|
|
|
- QMainWindow::showEvent (event);
|
|
|
- if (!m_AppConfig.activationHasRun() && (m_AppConfig.edition() == Unregistered)) {
|
|
|
- ActivationDialog activationDialog (this, m_AppConfig);
|
|
|
- activationDialog.exec();
|
|
|
- }
|
|
|
+ connect (this, SIGNAL(windowShown()), this, SLOT(on_windowShown()), Qt::QueuedConnection);
|
|
|
}
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
@@ -518,6 +511,12 @@ void MainWindow::proofreadInfo() |
|
|
setSynergyState((qSynergyState)oldState);
|
|
|
}
|
|
|
|
|
|
+void MainWindow::showEvent(QShowEvent* event)
|
|
|
+{
|
|
|
+ QMainWindow::showEvent(event);
|
|
|
+ emit windowShown();
|
|
|
+}
|
|
|
+
|
|
|
void MainWindow::clearLog()
|
|
|
{
|
|
|
m_pLogOutput->clear();
|
|
|
@@ -1367,6 +1366,14 @@ void MainWindow::bonjourInstallFinished() |
|
|
m_pCheckBoxAutoConfig->setChecked(true);
|
|
|
}
|
|
|
|
|
|
+void MainWindow::on_windowShown()
|
|
|
+{
|
|
|
+ if (!m_AppConfig.activationHasRun() && (m_AppConfig.edition() == Unregistered)) {
|
|
|
+ ActivationDialog activationDialog (this, m_AppConfig);
|
|
|
+ activationDialog.exec();
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
QString MainWindow::getProfileRootForArg()
|
|
|
{
|
|
|
CoreInterface coreInterface;
|
|
|
|
0 comments on commit
15f2e27