Commit 78d2319c authored by Thomas Schöps's avatar Thomas Schöps Committed by Thomas Schöps
Browse files

CMake plugin: Do not show KMessageBox if no active window exists to not block unit tests

parent 27125715
Pipeline #5636 failed with stage
in 60 minutes
......@@ -862,6 +862,10 @@ KTextEditor::Range CMakeManager::termRangeAtPosition(const KTextEditor::Document
void CMakeManager::showConfigureErrorMessage(const QString& errorMessage) const
if (!QApplication::activeWindow()) {
// Do not show a message box if there is no active window in order not to block unit tests.
KMessageBox::error(QApplication::activeWindow(), i18n(
"Failed to configure the project (error message: %1)."
" As a result, KDevelop's code understanding will likely be broken.\n"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment