mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 19:50:45 +00:00
Improve error message when null pointer found in journal file
This commit is contained in:
parent
1af5d3ec40
commit
fac7803880
@ -1197,7 +1197,9 @@ void MainWindow::updateFavourites()
|
|||||||
if (journal) {
|
if (journal) {
|
||||||
if (journal->size() > 0) {
|
if (journal->size() > 0) {
|
||||||
Session *sess = journal->firstSession(MT_JOURNAL);
|
Session *sess = journal->firstSession(MT_JOURNAL);
|
||||||
if (sess) {
|
if (!sess) {
|
||||||
|
qWarning() << "null session for MT_JOURNAL first session";
|
||||||
|
} else {
|
||||||
QString tmp;
|
QString tmp;
|
||||||
bool filtered = !bookmarkFilter.isEmpty();
|
bool filtered = !bookmarkFilter.isEmpty();
|
||||||
bool found = !filtered;
|
bool found = !filtered;
|
||||||
|
Loading…
Reference in New Issue
Block a user