projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
intl tweaks and olafs de.po, drag label rework
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
confirmquit.C
diff --git
a/cinelerra-5.1/cinelerra/confirmquit.C
b/cinelerra-5.1/cinelerra/confirmquit.C
index d0552dad86476503d9e6c9a5b7be72fec10bf202..11b874fd143387f738c9bb025a3970f2da117714 100644
(file)
--- a/
cinelerra-5.1/cinelerra/confirmquit.C
+++ b/
cinelerra-5.1/cinelerra/confirmquit.C
@@
-26,7
+26,7
@@
#include "mwindowgui.h"
#include "theme.h"
#include "mwindowgui.h"
#include "theme.h"
-
+#include <ctype.h>
ConfirmQuitWindow::ConfirmQuitWindow(MWindow *mwindow)
ConfirmQuitWindow::ConfirmQuitWindow(MWindow *mwindow)
@@
-76,8
+76,9
@@
int ConfirmQuitYesButton::handle_event()
}
int ConfirmQuitYesButton::keypress_event()
}
int ConfirmQuitYesButton::keypress_event()
-{;
- if(get_keypress() == 'y') return handle_event();
+{
+ if( toupper(get_keypress()) == *get_text() )
+ return handle_event();
return 0;
}
return 0;
}
@@
-98,7
+99,8
@@
int ConfirmQuitNoButton::handle_event()
int ConfirmQuitNoButton::keypress_event()
{
int ConfirmQuitNoButton::keypress_event()
{
- if(get_keypress() == 'n') return handle_event();
+ if( toupper(get_keypress()) == *get_text() )
+ return handle_event();
return 0;
}
return 0;
}