mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile: pass QString as value to registerError()
registerError() may be called from a different thread context. Passing the message as a const-reference may lead to a dangling reference. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
cdba35530b
commit
7da214a8c4
2 changed files with 2 additions and 2 deletions
|
@ -89,7 +89,7 @@ extern "C" int gitProgressCB(const char *text)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void QMLManager::registerError(const QString &error)
|
||||
void QMLManager::registerError(QString error)
|
||||
{
|
||||
appendTextToLog(error);
|
||||
if (!m_lastError.isEmpty())
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
};
|
||||
|
||||
static QMLManager *instance();
|
||||
Q_INVOKABLE void registerError(const QString &error);
|
||||
Q_INVOKABLE void registerError(QString error);
|
||||
QString consumeError();
|
||||
|
||||
QString cloudUserName() const;
|
||||
|
|
Loading…
Add table
Reference in a new issue