Summary: | configure shortcuts is not consistent, kdevelop shortcuts are application-wide and editor shortcuts are per file... | ||
---|---|---|---|
Product: | [Developer tools] kdevplatform | Reporter: | Holger Schröder <holger-kde> |
Component: | editor integration | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | f-jx |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Holger Schröder
2003-11-12 14:25:11 UTC
Yes. Of course. And allow me to add: AAAAARGH!! Confirmed. Subject: kdevelop/src CVS commit by dagerbo: apply shortcut changes to all loaded ReadOnlyParts (in reality, kateparts) CCMAIL: 67994-done@bugs.kde.org M +17 -0 mainwindowshare.cpp 1.34 --- kdevelop/src/mainwindowshare.cpp #1.33:1.34 @@ -465,4 +465,21 @@ void MainWindowShare::slotKeyBindings() } dlg.configure(); + + // this is needed for when we have multiple embedded kateparts and change one of them + // maybe this should be done to more than ReadOnlyParts, but restricting for now keeps + // it less heavy + if( const QPtrList<KParts::Part> * partlist = PartController::getInstance()->parts() ) + { + QPtrListIterator<KParts::Part> it( *partlist ); + while ( KParts::Part* part = it.current() ) + { + if ( KParts::ReadOnlyPart * ro_part = dynamic_cast<KParts::ReadOnlyPart*>( part ) ) + { + kdDebug(9000) << "reloading xml for: " << part->name() << endl; + part->reloadXML(); + } + ++it; + } + } } Scratch that. It's not enough. I think we reinsert the original actionlist somewhere.. reopening. This is almost fixed for real now. Jowenn figured it out - it is not enough to call reloadXML() on the editorparts, the corresponding Views needs to be updated as well. Now it appears to work fine for changing katepart custom shortcut settings, but changing back and forth between custom and default values still fails. I suspect that is an error in kdelibs though. After a closer look, the only error case I can still find is that if you go back to a default setting, the change isn't applied to the other open editorparts. This is a temporary condition (new editors will be correct) and a special case and I'm quite sure the bug isn't in KDevelop. Closing again. |