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())); } }