mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: don't connect to applicationStateChanged signal early
We don't want to connect to this until all parts of the QMLManager object are set up. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
995100a540
commit
53b572f987
1 changed files with 3 additions and 1 deletions
|
@ -209,7 +209,6 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
||||||
m_instance = this;
|
m_instance = this;
|
||||||
m_lastDevicePixelRatio = qApp->devicePixelRatio();
|
m_lastDevicePixelRatio = qApp->devicePixelRatio();
|
||||||
timer.start();
|
timer.start();
|
||||||
connect(qobject_cast<QApplication *>(QApplication::instance()), &QApplication::applicationStateChanged, this, &QMLManager::applicationStateChanged);
|
|
||||||
|
|
||||||
// make upload signals available in QML
|
// make upload signals available in QML
|
||||||
// Remark: signal - signal connect
|
// Remark: signal - signal connect
|
||||||
|
@ -324,6 +323,9 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
|
||||||
connect(Command::getUndoStack(), &QUndoStack::undoTextChanged, this, &QMLManager::undoTextChanged);
|
connect(Command::getUndoStack(), &QUndoStack::undoTextChanged, this, &QMLManager::undoTextChanged);
|
||||||
connect(Command::getUndoStack(), &QUndoStack::redoTextChanged, this, &QMLManager::redoTextChanged);
|
connect(Command::getUndoStack(), &QUndoStack::redoTextChanged, this, &QMLManager::redoTextChanged);
|
||||||
|
|
||||||
|
// now that everything is setup, connect the application changed signal
|
||||||
|
connect(qobject_cast<QApplication *>(QApplication::instance()), &QApplication::applicationStateChanged, this, &QMLManager::applicationStateChanged);
|
||||||
|
|
||||||
// we start out with clean data
|
// we start out with clean data
|
||||||
updateHaveLocalChanges(false);
|
updateHaveLocalChanges(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue