Skip to content

Commit

Permalink
Fix crash in Flatpak version (#2110)
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk authored Sep 26, 2022
1 parent bbd17d0 commit d62f393
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/clipboardbrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,9 @@ void ClipboardBrowser::preloadCurrentPage()

void ClipboardBrowser::preload(int pixels, int direction, const QModelIndex &start)
{
if ( !start.isValid() )
return;

const int s = spacing();
int y = -d.sizeHint(start).height();
for ( QModelIndex ind = start;
Expand Down

0 comments on commit d62f393

Please sign in to comment.