|
|
@ -294,6 +294,12 @@ int main(int argc, char *argv[]){ |
|
|
|
QStringList torrentCmdLine = app.arguments(); |
|
|
|
QStringList torrentCmdLine = app.arguments(); |
|
|
|
// Remove first argument (program name)
|
|
|
|
// Remove first argument (program name)
|
|
|
|
torrentCmdLine.removeFirst(); |
|
|
|
torrentCmdLine.removeFirst(); |
|
|
|
|
|
|
|
#ifndef QT_NO_DEBUG_OUTPUT |
|
|
|
|
|
|
|
foreach(const QString &argument, torrentCmdLine) { |
|
|
|
|
|
|
|
qDebug() << "Command line argument:" << argument; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
#ifndef DISABLE_GUI |
|
|
|
#ifndef DISABLE_GUI |
|
|
|
MainWindow window(0, torrentCmdLine); |
|
|
|
MainWindow window(0, torrentCmdLine); |
|
|
|
if(!no_splash) |
|
|
|
if(!no_splash) |
|
|
|