Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F789905
get-current-selection.diff
espak (Miklos Espak)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
espak
Jun 28 2017, 4:42 PM
2017-06-28 16:42:21 (UTC+2)
Size
1 KB
Referenced Files
None
Subscribers
None
get-current-selection.diff
View Options
diff --git a/Plugins/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp b/Plugins/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp
index e4cdded..7bde641 100644
--- a/Plugins/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp
+++ b/Plugins/org.mitk.gui.qt.datamanager/src/QmitkDataManagerView.cpp
@@ -54,6 +54,7 @@ See LICENSE.txt or http://www.mitk.org for details.
#include <berryPlatform.h>
#include <berryPlatformUI.h>
#include <berryIEditorRegistry.h>
+#include <berryISelectionProvider.h>
//# Toolkit Includes
#include <QAbstractItemView>
@@ -965,10 +966,10 @@ void QmitkDataManagerView::NodeSelectionChanged( const QItemSelection & /*select
node->SetBoolProperty("selected", false);
}
- nodes.clear();
- nodes = this->GetCurrentSelection();
+ berry::ISelectionProvider::Pointer selectionProvider = this->GetSite()->GetSelectionProvider();
+ mitk::DataNodeSelection::ConstPointer dataNodeSelection = selectionProvider->GetSelection().Cast<const mitk::DataNodeSelection>();
- foreach(mitk::DataNode::Pointer node, nodes)
+ foreach(mitk::DataNode::Pointer node, dataNodeSelection->GetSelectedDataNodes())
{
if ( node.IsNotNull() )
node->SetBoolProperty("selected", true);
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
164178
Default Alt Text
get-current-selection.diff (1 KB)
Attached To
Mode
T22963: Ensure consistency of "selected" property with Data Manager selection
Attached
Detach File
Event Timeline
Log In to Comment