Version: 1.0 (using KDE KDE 3.5.7)
Installed from: Debian testing/unstable Packages
I use a script to show a license and I want to determine whether the user approves a certain file.
I can easily do it using zenity, as it distinguishes whether the user has pressed the 'CLOSE' button, or cancelled the dialog using the 'ESC' button.
I cannot do it using kdialog, as it returns 0, no matter what...
# User presses OK button to approve:
$ kdialog --textbox license.txt ; echo ret=$?
# User presses CLOSE button to approve:
$ zenity --text-info --filename notes.txt ; echo ret=$?
# User presses on the 'X' button, or the 'ESC' key, to disapprove:
$ kdialog --textbox notes.txt ; echo ret=$?
$ zenity --text-info --filename license.txt ; echo ret=$?
SVN commit 761427 by uwolfer:
Return 1 when textbox got closed with close button or ESC.
M +1 -2 widgets.cpp
WebSVN link: http://websvn.kde.org/?view=rev&revision=761427