mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
kioclient: minor optimization
This commit is contained in:
parent
7dc83dc313
commit
4809b64280
1 changed files with 1 additions and 2 deletions
|
@ -182,8 +182,7 @@ bool ClientApp::kde_open(const KUrl& url, const QString& mimeType, bool allowExe
|
|||
this->exec();
|
||||
return !krun_has_error;
|
||||
} else {
|
||||
KUrl::List urls;
|
||||
urls.append( url );
|
||||
const KUrl::List urls( url );
|
||||
const KService::List offers = KMimeTypeTrader::self()->query(
|
||||
mimeType, QLatin1String( "Application" ) );
|
||||
if (offers.isEmpty()) return 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue