Use the right KRun syntax

This commit is contained in:
Luca Beltrame 2014-10-04 11:03:15 +02:00
parent 549a2b43b5
commit 36388e667f

View file

@ -1,21 +1,23 @@
/*************************************************************************** /*
* Copyright (C) %{CURRENT_YEAR} by %{AUTHOR} <%{EMAIL}> * * Copyright 2014 Luca Beltrame <lbeltrame@kde.org>
* * *
* This program is free software; you can redistribute it and/or modify * * This file is part of Danbooru Client.
* it under the terms of the GNU General Public License as published by * *
* the Free Software Foundation; either version 2 of the License, or * * Danbooru Client is free software: you can redistribute it and/or modify
* (at your option) any later version. * * it under the terms of the GNU General Public License as published by
* * * the Free Software Foundation, either version version of the License, or
* This program is distributed in the hope that it will be useful, * * (at your option) any later version.
* but WITHOUT ANY WARRANTY; without even the implied warranty of * *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * Danbooru Client is distributed in the hope that it will be useful,
* GNU General Public License for more details. * * but WITHOUT ANY WARRANTY; without even the implied warranty of
* * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* You should have received a copy of the GNU General Public License * * GNU General Public License for more details.
* along with this program; if not, write to the * *
* Free Software Foundation, Inc., * * You should have received a copy of the GNU General Public License
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * * along with Danbooru Client. If not, see <http://www.gnu.org/licenses/>.
***************************************************************************/ */
#include "danbooruclientview.h" #include "danbooruclientview.h"
@ -77,9 +79,8 @@ namespace Danbooru {
void DanbooruClientView::slotHandleView(QUrl url) void DanbooruClientView::slotHandleView(QUrl url)
{ {
KRun* runViewer = new KRun(url, this /*window*/, 0 /*mode*/, KRun* runViewer = new KRun(url, this /*window*/, true /*showProgressInfo*/,
false /*isLocalFile*/, "" /*asn*/);
true /*showProgressInfo*/, "" /*asn*/);
runViewer->setAutoDelete(true); runViewer->setAutoDelete(true);
} }