From 2141bd0a08d7eba62fc2dc12dbde044423992a5e Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sun, 9 Jun 2013 22:35:00 +0200 Subject: [PATCH] One less temporary variable --- src/model/danboorupostdelegate.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/model/danboorupostdelegate.cpp b/src/model/danboorupostdelegate.cpp index 7c65f3b..0791444 100644 --- a/src/model/danboorupostdelegate.cpp +++ b/src/model/danboorupostdelegate.cpp @@ -174,8 +174,7 @@ namespace Danbooru { const DanbooruPost* post = data.value(); if (post) { - KUrl url = post->fileUrl(); - Q_EMIT(postViewRequested(url)); + Q_EMIT(postDownloadRequested(post->fileUrl())); } @@ -193,8 +192,7 @@ namespace Danbooru { QVariant data = index.data(Qt::DisplayRole); const DanbooruPost* post = data.value(); if (post) { - KUrl url = post->fileUrl(); - Q_EMIT(postViewRequested(url)); + Q_EMIT(postViewRequested(post->fileUrl())); } }