One less temporary variable
This commit is contained in:
parent
9373508bc3
commit
2141bd0a08
1 changed files with 2 additions and 4 deletions
|
@ -174,8 +174,7 @@ namespace Danbooru {
|
||||||
const DanbooruPost* post = data.value<DanbooruPost*>();
|
const DanbooruPost* post = data.value<DanbooruPost*>();
|
||||||
|
|
||||||
if (post) {
|
if (post) {
|
||||||
KUrl url = post->fileUrl();
|
Q_EMIT(postDownloadRequested(post->fileUrl()));
|
||||||
Q_EMIT(postViewRequested(url));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -193,8 +192,7 @@ namespace Danbooru {
|
||||||
QVariant data = index.data(Qt::DisplayRole);
|
QVariant data = index.data(Qt::DisplayRole);
|
||||||
const DanbooruPost* post = data.value<DanbooruPost*>();
|
const DanbooruPost* post = data.value<DanbooruPost*>();
|
||||||
if (post) {
|
if (post) {
|
||||||
KUrl url = post->fileUrl();
|
Q_EMIT(postViewRequested(post->fileUrl()));
|
||||||
Q_EMIT(postViewRequested(url));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue