[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:05:20 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=30bf688

The following commit has been merged in the master branch:
commit 30bf68894b80de80d4f02272b5d5028f10ce6912
Author: George Kiagiadakis <kiagiadakis.george at gmail.com>
Date:   Sun Jul 1 17:39:08 2012 +0300

    DebugMessagesModel: Fix rowCount()
---
 tools/debugger/debug-messages-model.cpp | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/tools/debugger/debug-messages-model.cpp b/tools/debugger/debug-messages-model.cpp
index 22096a0..b8e17ac 100644
--- a/tools/debugger/debug-messages-model.cpp
+++ b/tools/debugger/debug-messages-model.cpp
@@ -195,8 +195,11 @@ QVariant DebugMessagesModel::data(const QModelIndex & index, int role) const
 
 int DebugMessagesModel::rowCount(const QModelIndex & parent) const
 {
-    Q_UNUSED(parent);
-    return m_messages.size();
+    if (!parent.isValid()) {
+        return m_messages.size();
+    } else {
+        return 0;
+    }
 }
 
 #include "moc_debug-messages-model.cpp"

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list