- Implemented "Close to systray"

This commit is contained in:
Christophe Dumez 2007-02-24 19:23:10 +00:00
parent a22afba059
commit 78aef3c3bc
6 changed files with 35 additions and 2 deletions

View file

@ -862,6 +862,11 @@ void GUI::showAbout(){
// Called when we close the program
void GUI::closeEvent(QCloseEvent *e){
if(options->getGoToSysTrayOnExitingWindow() && !this->isHidden()){
hide();
e->ignore();
return;
}
if(options->getConfirmOnExit()){
if(QMessageBox::question(this,
tr("Are you sure you want to quit? -- qBittorrent"),