mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +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();
|
this->exec();
|
||||||
return !krun_has_error;
|
return !krun_has_error;
|
||||||
} else {
|
} else {
|
||||||
KUrl::List urls;
|
const KUrl::List urls( url );
|
||||||
urls.append( url );
|
|
||||||
const KService::List offers = KMimeTypeTrader::self()->query(
|
const KService::List offers = KMimeTypeTrader::self()->query(
|
||||||
mimeType, QLatin1String( "Application" ) );
|
mimeType, QLatin1String( "Application" ) );
|
||||||
if (offers.isEmpty()) return 1;
|
if (offers.isEmpty()) return 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue