summaryrefslogtreecommitdiff
path: root/src/pluginlistsortproxy.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-03-09 12:34:34 +0100
committerTannin <devnull@localhost>2015-03-09 12:34:34 +0100
commit7a1ae9b0f1560c9eda32e032796fbb3fd56ff236 (patch)
treedea71435ac1042cb008fcd9f7b1ec57e6ea91227 /src/pluginlistsortproxy.cpp
parentd45ebf134819e1559718681becca9c4139fb7151 (diff)
parentdb2954e8eb41da715b9e7d79a72e225797401413 (diff)
Merge with branch1.2
Diffstat (limited to 'src/pluginlistsortproxy.cpp')
-rw-r--r--src/pluginlistsortproxy.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/pluginlistsortproxy.cpp b/src/pluginlistsortproxy.cpp
index 8d63e2e2..b8ac220a 100644
--- a/src/pluginlistsortproxy.cpp
+++ b/src/pluginlistsortproxy.cpp
@@ -52,11 +52,14 @@ void PluginListSortProxy::setEnabledColumns(unsigned int columns)
Qt::ItemFlags PluginListSortProxy::flags(const QModelIndex &modelIndex) const
{
- Qt::ItemFlags flags = sourceModel()->flags(mapToSource(modelIndex));
-/* if (sortColumn() == PluginList::COL_NAME) {
- flags &= ~Qt::ItemIsDragEnabled;
- }*/
- return flags;
+/* Qt::ItemFlags flags;
+ QModelIndex index = mapToSource(modelIndex);
+ if (index.isValid()) {
+ flags = sourceModel()->flags(index);
+ }
+ return flags;*/
+
+ return sourceModel()->flags(mapToSource(modelIndex));
}