mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 01:04:06 +02:00
Memleak fix. Cleanup
This commit is contained in:
parent
a8d24d9161
commit
1cde504c74
2 changed files with 1 additions and 4 deletions
|
@ -132,8 +132,6 @@ void WindowScriptingInterface::promptAsync(const QString& message, const QString
|
|||
disconnect(dlg, &ModalDialogListener::response, this, nullptr);
|
||||
emit promptTextChanged(result.toString());
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
CustomPromptResult WindowScriptingInterface::customPrompt(const QVariant& config) {
|
||||
|
@ -319,8 +317,6 @@ void WindowScriptingInterface::saveAsync(const QString& title, const QString& di
|
|||
}
|
||||
emit saveFileChanged(result);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// Display a select asset dialog that lets the user select an asset from the Asset Server. If `directory` is an invalid
|
||||
|
|
|
@ -94,6 +94,7 @@ QObject* OffscreenUi::getFlags() {
|
|||
void OffscreenUi::removeModalDialog(QObject* modal) {
|
||||
if (modal) {
|
||||
_modalDialogListeners.removeOne(modal);
|
||||
modal->deleteLater();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue