diff --git a/src/gui/addnewtorrentdialog.cpp b/src/gui/addnewtorrentdialog.cpp index d12ff566c..9c041dfbe 100644 --- a/src/gui/addnewtorrentdialog.cpp +++ b/src/gui/addnewtorrentdialog.cpp @@ -551,6 +551,10 @@ void AddNewTorrentDialog::renameSelectedFile() void AddNewTorrentDialog::setdialogPosition() { + // In macOS, AddNewTorrentDialog is a sheet, not a window. Moving it + // causes very bad things to happen, especially if AddNewTorrentDialog is + // on a secondary monitor. +#ifndef Q_OS_MAC qApp->processEvents(); QPoint center(Utils::Misc::screenCenter(this)); // Adjust y @@ -564,6 +568,7 @@ void AddNewTorrentDialog::setdialogPosition() center.setY(0); } move(center); +#endif } void AddNewTorrentDialog::populateSavePathComboBox()