Show view-only state in window title
authorChristian Pulvermacher <pulvermacher@gmx.de>
Wed, 25 Jan 2012 20:39:31 +0000 (21:39 +0100)
committerChristian Pulvermacher <pulvermacher@gmx.de>
Wed, 25 Jan 2012 20:39:31 +0000 (21:39 +0100)
src/mainwindow.cpp

index c1a9b1c..34b740f 100644 (file)
@@ -204,7 +204,7 @@ void MainWindow::connectToHost(QString url, int quality, int listen_port, bool v
             this, SLOT(statusChanged(RemoteView::RemoteStatus)));
     scroll_area->setWidget(vnc_view);
     vnc_view->start();
-    setWindowTitle(QString("Presence VNC - %1").arg(vnc_view->host()));
+    setWindowTitle(QString("Presence VNC - %1").arg(vnc_view->host()) + (view_only?tr(" [View Only]"):""));
 
     disconnect_action->setEnabled(true);