diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui.cpp | 7 | ||||
-rw-r--r-- | src/gui/mphoneform.h | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 0e91e58..752ae96 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1487,7 +1487,7 @@ void t_gui::cb_invalid_reg_resp(t_user *user_config, const t_response *r, const QString s; emit mw_display_header(); - qApp->translate("GUI", "%1, registration failed: %2 %3") + s = qApp->translate("GUI", "%1, registration failed: %2 %3") .arg(user_config->get_profile_name().c_str()) .arg(r->code) .arg(r->reason.c_str()); @@ -2689,9 +2689,8 @@ bool t_gui::cb_message_request(t_user *user_config, t_request *r) { // Set error message if attachment could not be saved if (failed_to_save_attachment) { - QString s = qApp->translate("GUI", "Failed to save message attachment: %1"); - s.arg(attachment_error_msg.c_str()); - session->set_error(s.toStdString()); + QString s = qApp->translate("GUI", "Failed to save message attachment: %1").arg(attachment_error_msg.c_str()); + session->set_error(s.toStdString()); } unlock(); diff --git a/src/gui/mphoneform.h b/src/gui/mphoneform.h index 2695b34..1527e8d 100644 --- a/src/gui/mphoneform.h +++ b/src/gui/mphoneform.h @@ -143,8 +143,8 @@ public slots: void showAddressBook(); void selectedAddress( const QString & address ); void enableCallOptions( bool enable ); - void keyPressEvent( QKeyEvent * e ); - void mouseReleaseEvent( QMouseEvent * e ); + virtual void keyPressEvent( QKeyEvent * e ) override; + virtual void mouseReleaseEvent( QMouseEvent * e ) override; void processLeftMouseButtonRelease( QMouseEvent * e ); void processRightMouseButtonRelease( QMouseEvent * e ); void processCryptLabelClick( int line ); |