[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdevplatform/5.0] plugins/documentswitcher: documentswitcher: Fix document paths
From: Kevin Funk <kfunk () kde ! org>
Date: 2015-11-30 20:06:55
Message-ID: E1a3Uit-0003EQ-E0 () scm ! kde ! org
[Download RAW message or body]
Git commit 02e8d09511ca99e5e07aa48cbfb88034f74f63fc by Kevin Funk.
Committed on 30/11/2015 at 20:06.
Pushed by kfunk into branch '5.0'.
documentswitcher: Fix document paths
M +2 -2 plugins/documentswitcher/documentswitcherplugin.cpp
http://commits.kde.org/kdevplatform/02e8d09511ca99e5e07aa48cbfb88034f74f63fc
diff --git a/plugins/documentswitcher/documentswitcherplugin.cpp \
b/plugins/documentswitcher/documentswitcherplugin.cpp index 2256bbb..cb58a59 100644
--- a/plugins/documentswitcher/documentswitcherplugin.cpp
+++ b/plugins/documentswitcher/documentswitcherplugin.cpp
@@ -168,12 +168,12 @@ void DocumentSwitcherPlugin::fillModel( Sublime::MainWindow* \
window ) }
if( isPartOfOpenProject )
{
- const int projectNameSize = path.indexOf("/");
+ const int projectNameSize = path.indexOf(":");
// first: project name, second: path to file in project (might be \
just '/' when the file is in the project root dir)
const QPair<QString, QString> fileInProjectInfo = (projectNameSize < \
0) ? qMakePair(path, QStringLiteral("/"))
- : qMakePair(path.left(projectNameSize), \
path.mid(projectNameSize)); + : \
qMakePair(path.left(projectNameSize), path.mid(projectNameSize + 1));
itemText = QStringLiteral("%1 \
(%2:%3)").arg(itemText).arg(fileInProjectInfo.first)
.arg(fileInProjectInfo.second);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic