Commit f68f184e authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: Minor cleanup of the code for the method toolbar.

parent aec8f68a
...@@ -243,21 +243,13 @@ void XttMethodToolbarQt::set_current_sensitive() ...@@ -243,21 +243,13 @@ void XttMethodToolbarQt::set_current_sensitive()
for (int i = 0; i < GeMethods::opmeth_size; i++) { for (int i = 0; i < GeMethods::opmeth_size; i++) {
if (m_op_method_mask & (1 << i) if (m_op_method_mask & (1 << i)
&& !streq(GeMethods::op_image[i], "")) { && !streq(GeMethods::op_image[i], "")) {
if (xm_mask.OpMethods & (1 << i)) { m_op_button_w[i]->setEnabled(xm_mask.OpMethods & (1 << i));
m_op_button_w[i]->setEnabled(true);
} else {
m_op_button_w[i]->setEnabled(false);
}
} }
} }
for (int i = 0; i < GeMethods::mntmeth_size; i++) { for (int i = 0; i < GeMethods::mntmeth_size; i++) {
if (m_mnt_method_mask & (1 << i) if (m_mnt_method_mask & (1 << i)
&& !streq(GeMethods::mnt_image[i], "")) { && !streq(GeMethods::mnt_image[i], "")) {
if (xm_mask.MntMethods & (1 << i)) { m_mnt_button_w[i]->setEnabled(xm_mask.MntMethods & (1 << i));
m_mnt_button_w[i]->setEnabled(true);
} else {
m_mnt_button_w[i]->setEnabled(false);
}
} }
} }
if (mask_store) { if (mask_store) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment