From: Flavio Date: Sat, 14 May 2011 21:00:48 +0000 (+0200) Subject: Fixed disabled search box when in fullscreen on Linux X-Git-Tag: 1.4.3~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=386511871a1e15e6bb2288d2498f1d41c14f25a2;p=minitube Fixed disabled search box when in fullscreen on Linux --- diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 23cb1a6..307bf7f 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -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) {