diff options
| -rw-r--r-- | src/mainwindow.cpp | 3 | ||||
| -rw-r--r-- | tests/test_mainwindow.cpp | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4e0c487..6d2697b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -698,6 +698,9 @@ void MainWindow::buildUi() // it before the rest of the UI exists. m_statusLabel = new QLabel(this); m_statusLabel->setObjectName(QStringLiteral("statusMessage")); + // Plain text, stated rather than left to AutoText's guess: a launch + // selector from another program's command line is echoed here on a miss. + m_statusLabel->setTextFormat(Qt::PlainText); statusBar()->addWidget(m_statusLabel); // Transient messages describe an EVENT and go stale: "Sync complete" reads diff --git a/tests/test_mainwindow.cpp b/tests/test_mainwindow.cpp index e115939..66cc9b5 100644 --- a/tests/test_mainwindow.cpp +++ b/tests/test_mainwindow.cpp @@ -18031,6 +18031,8 @@ void TestMainWindow::aThreadSelectorThatIsNotHexIsRefused() QVERIFY(status); QVERIFY2(status->text().contains(QStringLiteral("0000 or tag:inbox")), "the refusal must be reported as a miss naming the value"); + // The value came from another program, so the label must not interpret it. + QCOMPARE(status->textFormat(), Qt::PlainText); } void TestMainWindow::anEmptySelectorSetChangesNothing() |
