Skip to content

Commit

Permalink
Remove deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 7, 2021
1 parent 2f2fcf9 commit 4dc3a5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/crashhandler/qgscrashdialog.cpp
Expand Up @@ -77,8 +77,11 @@ void QgsCrashDialog::createBugReport()

void QgsCrashDialog::reloadQGIS()
{
bool loaded = QProcess::startDetached( mReloadArgs );
if ( loaded )
const QStringList command = QProcess::splitCommand( mReloadArgs );
if ( command.isEmpty() )
return;

if ( QProcess::startDetached( command.at( 0 ), command.mid( 1 ) ) )
{
accept();
}
Expand Down

0 comments on commit 4dc3a5e

Please sign in to comment.