Commit d8f177d4 authored by Laurent Montel's avatar Laurent Montel 😁

Use isEmpty() when it's possible

parent 416837db
......@@ -314,7 +314,7 @@ int main( int argc, char **argv )
QFile savedState( QStandardPaths::writableLocation(QStandardPaths::AppDataLocation) + QLatin1Char('/') + saved_state_file);
MainWindow *w = new MainWindow;
if (parser.positionalArguments().count())
if (!parser.positionalArguments().isEmpty())
{
if ( !w->loadGame( QUrl::fromLocalFile(parser.positionalArguments().at( 0 )), true ) )
w->slotShowGameSelectionScreen();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment