https://bugs.kde.org/show_bug.cgi?id=470889

Johannes Zarl-Zierl <johan...@zarl-zierl.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/kphotoalbum/-/commit/e
                   |                            |ae40928b1949c36838bda0b265f
                   |                            |b5fec1bb95fc

--- Comment #3 from Johannes Zarl-Zierl <johan...@zarl-zierl.at> ---
Git commit eae40928b1949c36838bda0b265fb5fec1bb95fc by Johannes Zarl-Zierl.
Committed on 11/06/2023 at 21:26.
Pushed by johanneszarl into branch 'master'.

Fix crash when AnnotationDialog is called from ViewerWidget

If the AnnotationDialog is called from the ViewerWidget (via the
"Annotate..." action in the context menu, ViewerWidget::editImage() is
called which calls MainWindow::configureImages().
Since MainWindow::configureImages() is a potentially long-running
function call, it is possible that the ViewerWidget was closed (and
deleted) before the function returns.
In this case, the execution returns to ViewerWidget::editImage of the
already deleted ViewerWidget object, leading to a crash.

By calling MainWindow::configureImages asynchronoulsy, the whole issue
is avoided.

M  +6    -3    Viewer/ViewerWidget.cpp

https://invent.kde.org/graphics/kphotoalbum/-/commit/eae40928b1949c36838bda0b265fb5fec1bb95fc

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to