Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/autotype/AutoType.cpp')
-rw-r--r--src/autotype/AutoType.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/autotype/AutoType.cpp b/src/autotype/AutoType.cpp
index cdb68175e..57299fb66 100644
--- a/src/autotype/AutoType.cpp
+++ b/src/autotype/AutoType.cpp
@@ -335,7 +335,9 @@ void AutoType::executeAutoTypeActions(const Entry* entry,
}
if (!result.canRetry() || i == max_retries) {
- MessageBox::critical(getMainWindow(), tr("Auto-Type Error"), result.errorString());
+ if (getMainWindow()) {
+ MessageBox::critical(getMainWindow(), tr("Auto-Type Error"), result.errorString());
+ }
emit autotypeRejected();
m_inAutoType.unlock();
return;