One less temporary variable

This commit is contained in:
Luca Beltrame 2013-06-09 22:35:00 +02:00
parent 9373508bc3
commit 2141bd0a08

View file

@ -174,8 +174,7 @@ namespace Danbooru {
const DanbooruPost* post = data.value<DanbooruPost*>();
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<DanbooruPost*>();
if (post) {
KUrl url = post->fileUrl();
Q_EMIT(postViewRequested(url));
Q_EMIT(postViewRequested(post->fileUrl()));
}
}