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*>();
|
||||
|
||||
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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue