From d32253b699910e6aec639c33dedda82e90d742ca Mon Sep 17 00:00:00 2001 From: Srivats P Date: Sat, 23 Sep 2017 17:28:35 +0530 Subject: [PATCH] Make URL in new Version status message clickable Additionally this message is now permanently visible won't be replaced or obscured by other (temporary) messages --- client/mainwindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/mainwindow.cpp b/client/mainwindow.cpp index 2db7670..1a54dbe 100644 --- a/client/mainwindow.cpp +++ b/client/mainwindow.cpp @@ -364,8 +364,11 @@ void MainWindow::onLocalServerError(QProcess::ProcessError error) void MainWindow::onNewVersion(QString newVersion) { - statusBar()->showMessage(QString("New Ostinato version %1 available. " - "Visit http://ostinato.org to download").arg(newVersion)); + QLabel *msg = new QLabel(tr("New Ostinato version %1 available. Visit " + "ostinato.org to download") + .arg(newVersion)); + msg->setOpenExternalLinks(true); + statusBar()->addPermanentWidget(msg); } //! Returns true on success (or user cancel) and false on failure