author | llornkcor <llornkcor> | 2003-04-15 00:36:18 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-04-15 00:36:18 (UTC) |
commit | 02f76303f1b134c26b13c30f97295e78ffca051b (patch) (unidiff) | |
tree | 8f64d4caa99229fa7d93258656c318667e8d6d6f | |
parent | 0b785144fe1700423b8a57e51638d444f1725283 (diff) | |
download | opie-02f76303f1b134c26b13c30f97295e78ffca051b.zip opie-02f76303f1b134c26b13c30f97295e78ffca051b.tar.gz opie-02f76303f1b134c26b13c30f97295e78ffca051b.tar.bz2 |
hack for bug 840. remembers typed in messages.
-rw-r--r-- | core/settings/button/remapdlg.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/settings/button/remapdlg.cpp b/core/settings/button/remapdlg.cpp index b6ee60b..939a6bf 100644 --- a/core/settings/button/remapdlg.cpp +++ b/core/settings/button/remapdlg.cpp | |||
@@ -127,6 +127,10 @@ void RemapDlg::itemChanged ( QListViewItem *it ) | |||
127 | w_message-> setEnabled ( enabled ); | 127 | w_message-> setEnabled ( enabled ); |
128 | 128 | ||
129 | w_channel-> setEditText ( m. channel ( )); | 129 | w_channel-> setEditText ( m. channel ( )); |
130 | //hack for if user has typed in a message, such as 'suspend()' | ||
131 | //so raise() is always present | ||
132 | if(m. message ( ) != "raise()") | ||
133 | w_message->insertItem("raise()"); | ||
130 | w_message-> setEditText ( m. message ( )); | 134 | w_message-> setEditText ( m. message ( )); |
131 | } | 135 | } |
132 | 136 | ||
@@ -145,6 +149,8 @@ void RemapDlg::textChanged ( const QString &str ) | |||
145 | 149 | ||
146 | OQCopMessage RemapDlg::message ( ) | 150 | OQCopMessage RemapDlg::message ( ) |
147 | { | 151 | { |
152 | //make sure to update message if typed in | ||
153 | itemChanged(w_list->currentItem()); | ||
148 | return m_msg; | 154 | return m_msg; |
149 | } | 155 | } |
150 | 156 | ||