[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdevplatform] plugins/vcschangesview: don't try to open the project from the vcs view
From: Aleix Pol <aleixpol () kde ! org>
Date: 2013-03-01 3:57:49
Message-ID: 20130301035749.53B8FA6091 () git ! kde ! org
[Download RAW message or body]
Git commit 986450adfec1c3c4bd00b11843ae7fc9b0b18c23 by Aleix Pol.
Committed on 01/03/2013 at 04:57.
Pushed by apol into branch 'master'.
don't try to open the project from the vcs view
M +2 -0 plugins/vcschangesview/vcschangesview.cpp
http://commits.kde.org/kdevplatform/986450adfec1c3c4bd00b11843ae7fc9b0b18c23
diff --git a/plugins/vcschangesview/vcschangesview.cpp b/plugins/vcschangesview/vcschangesview.cpp
index 1115493..a34b316 100644
--- a/plugins/vcschangesview/vcschangesview.cpp
+++ b/plugins/vcschangesview/vcschangesview.cpp
@@ -160,6 +160,8 @@ void VcsChangesView::setModel(QAbstractItemModel* model)
void VcsChangesView::openSelected(const QModelIndex& index)
{
+ if(!index.parent().isValid()) //then it's a project
+ return;
QModelIndex idx = index.sibling(index.row(), 0);
VcsStatusInfo info = idx.data(ProjectChangesModel::VcsStatusInfoRole).value<VcsStatusInfo>();
KUrl url = info.url();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic