Skip to content

Commit

Permalink
Provide warning to users with Qt 5.5.x about potential crash
Browse files Browse the repository at this point in the history
  • Loading branch information
droidmonkey committed Aug 18, 2018
1 parent 8db604e commit bef37ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,15 @@ MainWindow::MainWindow()
}
#endif

#ifndef KEEPASSXC_BUILD_TYPE_RELEASE
#if defined(KEEPASSXC_BUILD_TYPE_RELEASE)
m_ui->globalMessageWidget->showMessage(tr("WARNING: You are using an unstable build of KeePassXC!\n"
"There is a high risk of corruption, maintain a backup of your databases.\n"
"This version is not meant for production use."),
MessageWidget::Warning, -1);
MessageWidget::Warning, -1);
#elif (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0) && QT_VERSION < QT_VERSION_CHECK(5, 6, 0))
m_ui->globalMessageWidget->showMessage(tr("WARNING: You are using a version of Qt that causes KeePassXC to crash!\n"
"We recommend you use the AppImage version available on our downloads page."
MessageWidget::Warning, -1);
#else
// Show the HTTP deprecation message if enabled above
emit m_ui->globalMessageWidget->hideAnimationFinished();
Expand Down

0 comments on commit bef37ee

Please sign in to comment.