[Kst] branches/work/kst/kst1kde4/kst/src/libkstapp
Zongyi Zhang
freebody.kst at gmail.com
Wed Mar 24 19:12:12 CET 2010
SVN commit 1107066 by zhang:
continue kst1kde4
M +4 -4 kst.cpp
--- branches/work/kst/kst1kde4/kst/src/libkstapp/kst.cpp #1107065:1107066
@@ -2593,15 +2593,15 @@
if (rename) {
#if KDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
- name = KInputDialog::getText(i18n("Kst"), i18n("Enter a new name for the tab:"), name, &ok, parent, 0L, &val).stripWhiteSpace();
+ name = KInputDialog::getText(i18n("Kst"), i18n("Enter a new name for the tab:"), name, &ok, parent, 0L, &val).trimmed();
#else
- name = KLineEditDlg::getText(i18n("Enter a new name for the tab:"), name, &ok, parent, &val).stripWhiteSpace();
+ name = KLineEditDlg::getText(i18n("Enter a new name for the tab:"), name, &ok, parent, &val).trimmed();
#endif
} else {
#if KDE_VERSION >= KDE_MAKE_VERSION(3,3,0)
- name = KInputDialog::getText(i18n("Kst"), i18n("Enter a name for the new tab:"), name, &ok, parent, 0L, &val).stripWhiteSpace();
+ name = KInputDialog::getText(i18n("Kst"), i18n("Enter a name for the new tab:"), name, &ok, parent, 0L, &val).trimmed();
#else
- name = KLineEditDlg::getText(i18n("Enter a name for the new tab:"), name, &ok, parent, &val).stripWhiteSpace();
+ name = KLineEditDlg::getText(i18n("Enter a name for the new tab:"), name, &ok, parent, &val).trimmed();
#endif
}
if (ok && name==defaultTag) {
More information about the Kst
mailing list