patch for broken configuration
Ewald Arnold
ewald at ewald-arnold.de
Fri Aug 27 18:45:37 UTC 2004
The following mail has already been sent to the mailing list
kdevelop at kdevelop.org but it seemed to get lost.
it is possible to create a configuration for the configure process named
"unicode debug". Unfortunately the project loader then reports an error
due to the tag <unicode debug>. I solved it with the following patch which
disables the button when spaces are used.
Index: buildtools/autotools/configureoptionswidget.cpp
===================================================================
RCS file: /home/kde/kdevelop/buildtools/autotools/configureoptionswidget.cpp,v
retrieving revision 1.23
diff -p -U3 -r1.23 configureoptionswidget.cpp
--- buildtools/autotools/configureoptionswidget.cpp 10 May 2004 19:28:17
-0000
1.23
+++ buildtools/autotools/configureoptionswidget.cpp 23 Aug 2004 20:04:39
-0000
@@ -267,7 +267,10 @@ void ConfigureOptionsWidget::topsourcedi
void ConfigureOptionsWidget::configComboTextChanged(const QString &config)
{
- bool canAdd = !allConfigs.contains(config) && !config.contains("/")
&& !config.isEmpty();
+ bool canAdd = !allConfigs.contains(config)
+ && !config.contains(" ")
+ && !config.contains("/")
+ && !config.isEmpty();
bool canRemove = allConfigs.contains(config) && config != "default";
addconfig_button->setEnabled(canAdd);
removeconfig_button->setEnabled(canRemove);
--
Ewald Arnold, Germany
mailto:ewald at ewald-arnold dot de
icq:227435282
More information about the KDevelop-devel
mailing list