[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:24:29 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=9953f40

The following commit has been merged in the master branch:
commit 9953f40919c88c13cfbd4d04e3c1fec37983f8e8
Author: Dan Vrátil <dvratil at redhat.com>
Date:   Thu Apr 10 18:19:17 2014 +0200

    Fix crash in DatesModel when View asks for a non-existent item
    
    Approved-By: Alex Fiestas
---
 logviewer/dates-model.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/logviewer/dates-model.cpp b/logviewer/dates-model.cpp
index cb9c8da..4476c88 100644
--- a/logviewer/dates-model.cpp
+++ b/logviewer/dates-model.cpp
@@ -415,6 +415,10 @@ QModelIndex DatesModel::index(int row, int column, const QModelIndex &parent) co
         parentNode = static_cast<Node*>(parent.internalPointer());
     }
 
+    if (row >= parentNode->children.count()) {
+        return QModelIndex();
+    }
+
     return createIndex(row, column, parentNode->children.at(row));
 }
 

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list