From 36388e667f83349b7724bb4ad2a23fb587b5be83 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 4 Oct 2014 11:03:15 +0200 Subject: [PATCH] Use the right KRun syntax --- src/danbooruclientview.cpp | 43 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/src/danbooruclientview.cpp b/src/danbooruclientview.cpp index 0189238..ec8ee88 100644 --- a/src/danbooruclientview.cpp +++ b/src/danbooruclientview.cpp @@ -1,21 +1,23 @@ -/*************************************************************************** - * Copyright (C) %{CURRENT_YEAR} by %{AUTHOR} <%{EMAIL}> * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * - ***************************************************************************/ +/* + * Copyright 2014 Luca Beltrame + * + * This file is part of Danbooru Client. + * + * Danbooru Client is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version version of the License, or + * (at your option) any later version. + * + * Danbooru Client is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Danbooru Client. If not, see . + */ + + #include "danbooruclientview.h" @@ -77,9 +79,8 @@ namespace Danbooru { void DanbooruClientView::slotHandleView(QUrl url) { - KRun* runViewer = new KRun(url, this /*window*/, 0 /*mode*/, - false /*isLocalFile*/, - true /*showProgressInfo*/, "" /*asn*/); + KRun* runViewer = new KRun(url, this /*window*/, true /*showProgressInfo*/, + "" /*asn*/); runViewer->setAutoDelete(true); }