- "Configure which data should be shown in the Information Panel."));
- dialog->exec();
- delete dialog;
- }
-
- if (!m_item.isNull() && m_item.nepomukUri().isValid()) {
- showItem(m_item);
+ "Select which data should be shown in the information panel."));
+ dialog->setItems(m_metaDataWidget->items());
+ dialog->setAttribute(Qt::WA_DeleteOnClose);
+ dialog->show();
+ dialog->raise();
+ dialog->activateWindow();
+ connect(dialog, SIGNAL(destroyed()), this, SLOT(refreshMetaData()));