[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:22:06 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=c6317d7
The following commit has been merged in the master branch:
commit c6317d78af34787eb141ff0256f50eda144ff530
Author: Dan Vrátil <dan at progdan.cz>
Date: Mon Jul 16 01:00:59 2012 +0200
Fix auto-selecting contact passed as command line argument
Reviewed-by: David Edmundson
---
logviewer/entity-view.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/logviewer/entity-view.cpp b/logviewer/entity-view.cpp
index a470957..f351a6e 100644
--- a/logviewer/entity-view.cpp
+++ b/logviewer/entity-view.cpp
@@ -45,15 +45,13 @@ void EntityView::rowsInserted(const QModelIndex &parent, int start, int end)
QString selectAccountId = KCmdLineArgs::parsedArgs()->arg(0);
QString selectContactId = KCmdLineArgs::parsedArgs()->arg(1);
- for (int i=start; i<end;i++) {
+ for (int i = start; i <= end; i++) {
QModelIndex index = model()->index(i, 0, parent);
QString accountId = index.data(EntityModel::AccountRole).value<Tp::AccountPtr>()->uniqueIdentifier();
QString contactId = index.data(EntityModel::EntityRole).value<Tpl::EntityPtr>()->identifier();
if (selectAccountId == accountId && selectContactId == contactId) {
setCurrentIndex(index);
- Q_EMIT activated(index); // this is normally emitted when a user clicks a contact
- //we emit it here to trigger the same results.
loadedCurrentContact = true;
}
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list