Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Dec 21, 2016
2 parents 02e514d + ea88619 commit 894ab91
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v2.8.2
- Fixed focusing tray menu from command
- Fixed dialog button translation on Windows
- Fixed passing big data to commands

v2.8.1
- All Qt messages are logged
- Fixed and improved commands for Tags plugin
Expand Down
7 changes: 7 additions & 0 deletions src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1898,6 +1898,13 @@ bool MainWindow::toggleMenu(ClipboardBrowser *browser)
{
m_trayTab = browser;
m_trayMenu->toggle();

// Try to steal focus.
m_trayMenu->raise();
m_trayMenu->activateWindow();
QApplication::setActiveWindow(m_trayMenu);
stealFocus(*m_trayMenu);

m_trayTab = NULL;
return m_trayMenu->isVisible();
}
Expand Down

0 comments on commit 894ab91

Please sign in to comment.