aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-12-29 01:11:06 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-12-29 01:11:06 +0000
commite125ea7275ecdf338a73e4ba878695c4077df403 (patch)
tree42c73d7ffe2897a3d6fe2243f91f25563e6042a6 /textedit.cpp
parentmethod for curHelpPage (diff)
downloadgpg4usb-e125ea7275ecdf338a73e4ba878695c4077df403.tar.gz
gpg4usb-e125ea7275ecdf338a73e4ba878695c4077df403.zip
enable copy on help
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@719 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r--textedit.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/textedit.cpp b/textedit.cpp
index 97c13ad..49c9b6d 100644
--- a/textedit.cpp
+++ b/textedit.cpp
@@ -480,11 +480,13 @@ void TextEdit::copy()
return;
}
- if(curTextPage() == 0) {
-
+ if(curTextPage() != 0) {
+ curTextPage()->copy();
+ } else {
+ curHelpPage()->copy();
}
- curTextPage()->copy();
+
}
void TextEdit::paste()