Skip to content

Commit

Permalink
OSX: Fix refocusing correct main window widget
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Holecek <hluk@email.cz>
  • Loading branch information
hluk committed Sep 15, 2019
1 parent f8290e4 commit 83083e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/clipboardbrowserplaceholder.cpp
Expand Up @@ -211,6 +211,11 @@ void ClipboardBrowserPlaceholder::unloadBrowser()
return;

COPYQ_LOG( QString("Tab \"%1\": Unloading").arg(m_tabName) );

// WORKAROUND: This is needed on macOS, to fix refocusing correct widget later.
m_browser->clearFocus();

m_browser->hide();
m_browser->saveUnsavedItems();
m_browser->deleteLater();
m_browser = nullptr;
Expand Down

0 comments on commit 83083e1

Please sign in to comment.