mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 23:47:23 -06:00
Option to disallow bringing the torrent dialog to the front.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user