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
This commit is contained in:
parent
b2291eb1c0
commit
d32253b699
@ -364,8 +364,11 @@ void MainWindow::onLocalServerError(QProcess::ProcessError error)
|
|||||||
|
|
||||||
void MainWindow::onNewVersion(QString newVersion)
|
void MainWindow::onNewVersion(QString newVersion)
|
||||||
{
|
{
|
||||||
statusBar()->showMessage(QString("New Ostinato version %1 available. "
|
QLabel *msg = new QLabel(tr("New Ostinato version %1 available. Visit "
|
||||||
"Visit http://ostinato.org to download").arg(newVersion));
|
"<a href='http://ostinato.org'>ostinato.org</a> to download")
|
||||||
|
.arg(newVersion));
|
||||||
|
msg->setOpenExternalLinks(true);
|
||||||
|
statusBar()->addPermanentWidget(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Returns true on success (or user cancel) and false on failure
|
//! Returns true on success (or user cancel) and false on failure
|
||||||
|
Loading…
Reference in New Issue
Block a user