Don't disappear forever when Ctrl+W is used

This commit is contained in:
David Sansome 2010-06-17 17:08:56 +00:00
parent 91057acd78
commit c70fb01c44
2 changed files with 2 additions and 1 deletions

View File

@ -511,7 +511,7 @@ MainWindow::MainWindow(NetworkAccessManager* network, Engine::Type engine, QWidg
QShortcut* close_window_shortcut = new QShortcut(this);
close_window_shortcut->setKey(Qt::CTRL + Qt::Key_W);
connect(close_window_shortcut, SIGNAL(activated()), SLOT(hide()));
connect(close_window_shortcut, SIGNAL(activated()), SLOT(SetHiddenInTray()));
library_->Init();
library_->StartThreads();

View File

@ -142,6 +142,7 @@ class MainWindow : public QMainWindow, public PlatformInterface {
void ShowLibraryConfig();
void ReloadSettings();
void SetHiddenInTray() { SetHiddenInTray(true); }
void AddFile();
void AddFolder();