Fix torrent loading on Mac OS X (closes #1011229)

This commit is contained in:
Christophe Dumez 2012-06-24 15:03:12 +03:00
parent ccefe68e4c
commit 80359f3e5e
4 changed files with 25 additions and 2 deletions

View file

@ -307,6 +307,9 @@ int main(int argc, char *argv[]) {
QObject::connect(&app, SIGNAL(messageReceived(const QString&)),
&window, SLOT(processParams(const QString&)));
app.setActivationWindow(&window);
#ifdef Q_WS_MAC
static_cast<QMacApplication*>(&app)->setReadyToProcessEvents();
#endif // Q_WS_MAC
#else
// Load Headless class
HeadlessLoader loader(torrentCmdLine);