Option to disallow bringing the torrent dialog to the front.

This commit is contained in:
sledgehammer999 2013-10-06 18:42:56 +03:00
parent 909716849e
commit 08cd1c9b0c
4 changed files with 38 additions and 13 deletions

View file

@ -141,6 +141,9 @@ void AddNewTorrentDialog::showMagnet(const QString& link)
void AddNewTorrentDialog::showEvent(QShowEvent *event) {
QDialog::showEvent(event);
Preferences pref;
if (!pref.AdditionDialogFront())
return;
activateWindow();
raise();
}