[SCM] ktp-contact-list packaging branch, master, updated. debian/15.12.1-2-1070-g6c56f91

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:11:44 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=12c49c2

The following commit has been merged in the master branch:
commit 12c49c2b7a66b3eca8bab32c4d55dd8f0606f649
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Sun Dec 9 13:45:17 2012 -0800

    Store a QPersistentModelIndex not a ModelIndex
    
    When a model index is stored outside the scope of a function the persistent version should _always_ be used.
    In practice in this case it's probably safe, but it is still wrong.
    
    REVIEW: 107652
---
 context-menu.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/context-menu.h b/context-menu.h
index b862550..2e13a76 100644
--- a/context-menu.h
+++ b/context-menu.h
@@ -21,7 +21,7 @@
 #define CONTEXT_MENU_H
 
 #include <QObject>
-#include <QModelIndex>
+#include <QPersistentModelIndex>
 #include <QStringList>
 
 #include <TelepathyQt/Types>
@@ -68,7 +68,7 @@ private Q_SLOTS:
 
 private:
     ContactListWidget     *m_mainWidget;
-    QModelIndex            m_currentIndex;
+    QPersistentModelIndex  m_currentIndex;
     Tp::AccountManagerPtr  m_accountManager;
     Tpl::LogManagerPtr	   m_logManager;
 };

-- 
ktp-contact-list packaging



More information about the pkg-kde-commits mailing list