| Summary: | krusader recreate useractions.xml from useraction_examples.xml | ||
|---|---|---|---|
| Product: | TDE | Reporter: | pitriss <chytrex> |
| Component: | tdebase | Assignee: | Timothy Pearson <kb9vqf> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bugwatch, slavek.banko |
| Priority: | P5 | ||
| Version: | R14.0.0 [Trinity] | ||
| Hardware: | amd64 | ||
| OS: | Debian Wheezy | ||
| Compiler Version: | TDE Version String: | ||
| Application Version: | Application Name: | ||
| Bug Depends on: | |||
| Bug Blocks: | 2540 | ||
|
Description
pitriss
2015-07-20 19:22:39 CDT
I looked at the problem more closely. Complications are not names ending in XML, but the fact that are deliberately loaded both files "krusader/useractions.xml" and "krusader/useraction_examples.xml" - see method UserAction::readAllFiles (krusader/UserAction/useraction.cpp:78). Instead of changing the name of the file will be needed to deal with the option of whether to load or not to load examples. (In reply to Slávek Banko from comment #1) > I looked at the problem more closely. > > Complications are not names ending in XML, but the fact that are > deliberately loaded both files "krusader/useractions.xml" and > "krusader/useraction_examples.xml" - see method UserAction::readAllFiles > (krusader/UserAction/useraction.cpp:78). > > Instead of changing the name of the file will be needed to deal with the > option of whether to load or not to load examples. Hmm hmm and how about simply load examples only when krusaderrc is not exist? Simple and IMHO it also does what examples should do.. (In reply to pitriss from comment #2) > (In reply to Slávek Banko from comment #1) > > I looked at the problem more closely. > > > > Complications are not names ending in XML, but the fact that are > > deliberately loaded both files "krusader/useractions.xml" and > > "krusader/useraction_examples.xml" - see method UserAction::readAllFiles > > (krusader/UserAction/useraction.cpp:78). > > > > Instead of changing the name of the file will be needed to deal with the > > option of whether to load or not to load examples. > > Hmm hmm and how about simply load examples only when krusaderrc is not > exist? Simple and IMHO it also does what examples should do.. Yes, the proposal makes sense. Examples will now be loaded only if the user has no actions defined. Fixed in GIT hash 76ca48c4 (master) and a9cd8b8b (r14.0.x). |