[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kexi/widget
From: Adam Pigg <adam () piggz ! co ! uk>
Date: 2010-09-25 10:00:35
Message-ID: 20100925100035.895E2AC88C () svn ! kde ! org
[Download RAW message or body]
SVN commit 1179402 by piggz:
The last commit was wrong. If in usermode, we still want to find out the selection and emit it.
M +4 -4 KexiProjectNavigator.cpp
--- trunk/koffice/kexi/widget/KexiProjectNavigator.cpp #1179401:1179402
@@ -277,15 +277,13 @@
void KexiProjectNavigator::slotSelectionChanged(const QModelIndex& i)
{
- if (KexiMainWindowIface::global() && KexiMainWindowIface::global()->userMode()) {
- return;
- }
-
KexiProjectModelItem *it = static_cast<KexiProjectModelItem*>(i.internalPointer());
if (!it) {
+ if (KexiMainWindowIface::global() && !KexiMainWindowIface::global()->userMode()) {
m_openAction->setEnabled(false);
m_designAction->setEnabled(false);
m_deleteAction->setEnabled(false);
+ }
return;
}
KexiPart::Part* part = Kexi::partManager().part(it->partInfo());
@@ -311,6 +309,7 @@
//todo setAvailable("edit_edititem",gotitem);
#endif
+ if ( KexiMainWindowIface::global() && !KexiMainWindowIface::global()->userMode() ) {
m_openAction->setEnabled(gotitem && part && (part->supportedViewModes() & Kexi::DataViewMode));
if (m_designAction) {
// m_designAction->setVisible(gotitem && part && (part->supportedViewModes() & Kexi::DesignViewMode));
@@ -365,6 +364,7 @@
}
}
}
+ }
emit selectionChanged(it ? it->partItem() : 0);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic