Commit 012664e2 authored by Tomasz Bojczuk's avatar Tomasz Bojczuk Committed by Emmanuel Pescosta

Set the working directory instead of clearing it.

BUG: 352625
REVIEW: 125383
FIXED-IN: 15.08.2
parent f8164b22
......@@ -36,6 +36,7 @@
#include <QString>
#include <QStringList>
#include <QTextCodec>
#include <QDir>
K_PLUGIN_FACTORY(FileViewGitPluginFactory, registerPlugin<FileViewGitPlugin>();)
......@@ -271,7 +272,7 @@ QList<QAction*> FileViewGitPlugin::contextMenuFilesActions(const KFileItemList&
Q_ASSERT(!items.isEmpty());
if (!m_pendingOperation){
m_contextDir.clear();
m_contextDir = QFileInfo(items.first().localPath()).canonicalPath();
m_contextItems.clear();
foreach(const KFileItem& item, items){
m_contextItems.append(item);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment