# HG changeset patch # User Teemu Piippo # Date 1521541552 -7200 # Node ID adb9d32a1426e500f739a2b0740bc4ed0c9ea42a # Parent be85306198a2baa29c157c812f5b1ad32986ac97 fixed warning diff -r be85306198a2 -r adb9d32a1426 src/headerhistorymodel.cpp --- a/src/headerhistorymodel.cpp Mon Mar 19 12:44:27 2018 +0200 +++ b/src/headerhistorymodel.cpp Tue Mar 20 12:25:52 2018 +0200 @@ -10,6 +10,8 @@ { if (this->header) return this->header->history.size(); + else + return 0; } int HeaderHistoryModel::columnCount(const QModelIndex&) const