Review Request 126105: Fix yet another crash in Dolphin when Baloo isn't running

Boudhayan Gupta bgupta at kde.org
Thu Nov 19 07:11:33 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126105/
-----------------------------------------------------------

(Updated Nov. 19, 2015, 7:11 a.m.)


Status
------

This change has been marked as submitted.


Review request for Baloo, KDE Frameworks, Pinak Ahuja, and Vishesh Handa.


Changes
-------

Submitted with commit 1e880e29883561c8330cb81c03b48716ea68616c by Boudhayan Gupta to branch master.


Repository: baloo


Description
-------

Add a check in Baloo::Database::open() to return false if we're opening the database in ReadOnly mode and the database doesn't exist. This fixes a crash in Dolphin when Baloo isn't running.

This isn't the entire fix - one will also have to remove ~/.local/share/baloo/index to not crash anymore; this patch prevents the file from being recreated everytime Baloo::Database::open() is run, and re-causing the crash.


Diffs
-----

  src/engine/database.cpp 4f0579f 

Diff: https://git.reviewboard.kde.org/r/126105/diff/


Testing
-------

Builds, runs, doesn't crash anymore, the works.


Thanks,

Boudhayan Gupta

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20151119/b09ab634/attachment.html>


More information about the Kde-frameworks-devel mailing list