Skip to content

Commit 31507c9

Browse files
committed
Prevent crash on right click (temporary fix)
1 parent b5ee937 commit 31507c9

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

src/views/versioncontrol/versioncontrolobserver.cpp

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,17 @@ QList<QAction*> VersionControlObserver::actions(const KFileItemList& items) cons
109109
return {};
110110
}
111111

112-
if (isVersionControlled()) {
113-
return m_plugin->versionControlActions(items);
114-
} else {
115-
QList<QAction*> actions;
116-
for (const QPointer<KVersionControlPlugin> &plugin : qAsConst(m_plugins)) {
117-
actions << plugin->outOfVersionControlActions(items);
118-
}
119-
return actions;
120-
}
112+
return {};
113+
114+
// if (isVersionControlled()) {
115+
// return m_plugin->versionControlActions(items);
116+
// } else {
117+
// QList<QAction*> actions;
118+
// for (const QPointer<KVersionControlPlugin> &plugin : qAsConst(m_plugins)) {
119+
// actions << plugin->outOfVersionControlActions(items);
120+
// }
121+
// return actions;
122+
// }
121123
}
122124

123125
void VersionControlObserver::delayedDirectoryVerification()

0 commit comments

Comments
 (0)