Version: 1.11.2 (using KDE 3.5.2, compiled sources)
Compiler: gcc version 3.4.1
OS: Linux (i686) release 126.96.36.199
I wanted to remove my KBabel configuration and restart with a fresh one.
For this reason i removed all files related to kbabel under ~/.kde/share/config and ~/.kde/share/apps.
On next start of kbabel it asks me to input my identity on first startup, but all fields are gray and disabled.
I found the reason is, that the file kbabel.defaultproject was missing and kbabel did not recreate a standard-version of the file on startup. This prevents me from updating my user details.
I can confirm.
It is enough to rename the kbabel.defaultproject file to get that bug (even if in that case, you do not get the dialog at startup, but you cannot change the project setting).
Have a nice day!
SVN commit 554679 by goutte:
Allow to open empty files as KBabel project files
(That is not exactly the same bug, but it has the same symptom.)
M +12 -1 kbproject.cpp
--- branches/KDE/3.5/kdesdk/kbabel/common/kbproject.cpp #554678:554679
@@ -66,8 +66,19 @@
// first, for existing file check the MIME type
// it has to be text file
KMimeType::Ptr mime = KMimeType::findByURL( KURL::fromPathOrURL( file ) );
- if( mime->name() != "text/plain" )
+ if ( mime->name() == "text/plain" )
+ // Plain text, no problem!
+ else if ( mime->name() == "application/x-zerosize" )
+ // Empty files are allowed too
+ kdWarning() << "Empty KBabel project file!" << endl;
+ // Unknown mime type, abort!
// ### TODO: should the user not be asked instead?
kdWarning () << "File type is " << mime->name() << endl;
Created attachment 16779 [details]
Try to fix the dialog for a missing default project
The patch does not work, as the project configuration dialog show gray entries.
Created attachment 18605 [details]
Fix project handling when default project is missing
Please try the appended patch. It should fix all problems related to a missing
default project file.
I can confirm that the bug is fixed by the patch provided by Stephan Johach. I'd like to see the fix in SVN :)
SVN commit 606520 by johach:
Fix problems when no default project is found.
KBabel used a KDE function which returns a null string
if the requested file does not exist. That lead to
some strange problems with disabled project configuration
M +12 -8 catalogmanager/catalogmanager.cpp
M +2 -1 catalogmanager/catalogmanager.h
M +3 -1 catalogmanager/main.cpp
M +3 -0 common/catalog.cpp
M +1 -3 common/catalog.h
M +1 -0 common/catalogitem.cpp
M +4 -1 common/kbproject.cpp
M +9 -0 common/kbprojectmanager.cpp
M +2 -0 common/kbprojectmanager.h
M +0 -1 common/resources.h
M +1 -0 kbabel/hidingmsgedit.cpp
M +18 -13 kbabel/kbabel.cpp
M +2 -2 kbabel/kbabel.h
M +12 -9 kbabel/main.cpp
M +1 -1 kbabel/mymultilineedit.cpp