summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/settings/button/remapdlg.cpp6
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
146OQCopMessage RemapDlg::message ( ) 150OQCopMessage 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