aboutsummaryrefslogtreecommitdiff
path: root/src/QuickMedia.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-23 20:41:40 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-23 22:25:02 +0100
commit0c4fd4700d6ee31f6b848d49a6aa7ebfa4a806fa (patch)
tree351e800914a053ab196d972a36e09911227e9f50 /src/QuickMedia.cpp
parent1de2ff02bb746607727900180b6f32ded0cd7856 (diff)
Re-add item drawing height diff shifting to fix bumping in item drawing
Add newline before codeblock in 4chan if previous line is not a newline.
Diffstat (limited to 'src/QuickMedia.cpp')
-rw-r--r--src/QuickMedia.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index ca69248..9e8211a 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -4548,8 +4548,11 @@ namespace QuickMedia {
return image_board_post_data->post_id == navigate_to_post_id;
});
- if(found_body_item_index != -1)
+ if(found_body_item_index == -1) {
+ show_notification("QuickMedia", "Could not find the post " + thread_page->post_id + " in the thread. It either doesn't exist or it has been deleted", Urgency::NORMAL);
+ } else {
thread_body->set_selected_item(found_body_item_index);
+ }
}
// TODO: Instead of using stage here, use different pages for each stage