Browse Source

Require password to exit qBittorrent from tray icon when locked (closes #311)

adaptive-webui-19844
Christophe Dumez 12 years ago
parent
commit
aecf069975
  1. 7
      src/mainwindow.cpp

7
src/mainwindow.cpp

@ -659,6 +659,13 @@ void MainWindow::on_actionSet_global_download_limit_triggered() { @@ -659,6 +659,13 @@ void MainWindow::on_actionSet_global_download_limit_triggered() {
// Necessary if we want to close the window
// in one time if "close to systray" is enabled
void MainWindow::on_actionExit_triggered() {
// UI locking enforcement.
if (isHidden() && ui_locked) {
// Ask for UI lock password
if (!unlockUI())
return;
}
force_exit = true;
close();
}

Loading…
Cancel
Save