]> git.sur5r.net Git - minitube/commitdiff
Fixed disabled search box when in fullscreen on Linux
authorFlavio <flavio@odisseo.local>
Sat, 14 May 2011 21:00:48 +0000 (23:00 +0200)
committerFlavio <flavio@odisseo.local>
Sat, 14 May 2011 21:00:48 +0000 (23:00 +0200)
src/MainWindow.cpp

index 23cb1a60054c15e4f5b0e3cb4666e43e29c26306..307bf7fed7b60a57a8ff081363b5213457c7eb66 100644 (file)
@@ -710,6 +710,7 @@ void MainWindow::fullscreen() {
 
     // workaround: prevent focus on the search bar
     // it steals the Space key needed for Play/Pause
+    toolbarSearch->setVisible(m_fullscreen);
     toolbarSearch->setEnabled(m_fullscreen);
 
     // Hide anything but the video
@@ -903,7 +904,7 @@ void MainWindow::volumeChanged(qreal newVolume) {
     // automatically unmute when volume changes
     if (volumeSlider->audioOutput()->isMuted())
         volumeSlider->audioOutput()->setMuted(false);
-    statusBar()->showMessage(tr("Volume at %1%").arg(newVolume*100));
+    statusBar()->showMessage(tr("Volume at %1%").arg(((int)newVolume)*100));
 }
 
 void MainWindow::volumeMutedChanged(bool muted) {
@@ -942,6 +943,8 @@ void MainWindow::toggleDefinitionMode() {
 void MainWindow::showFullscreenToolbar(bool show) {
     if (!m_fullscreen) return;
     mainToolBar->setVisible(show);
+    toolbarSearch->setVisible(show);
+    toolbarSearch->setEnabled(show);
 }
 
 void MainWindow::showFullscreenPlaylist(bool show) {