[interactiveterminal] refactor again to keep Transifex happy

This commit is contained in:
Adriaan de Groot 2017-11-28 06:45:56 -05:00
parent 790073cddc
commit d06e29b1c5
2 changed files with 10 additions and 8 deletions

View File

@ -46,12 +46,12 @@ InteractiveTerminalPage::InteractiveTerminalPage( QWidget* parent )
m_layout->addWidget( m_headerLabel ); m_layout->addWidget( m_headerLabel );
} }
static void void
errorKonsoleNotInstalled( QWidget* parent) InteractiveTerminalPage::errorKonsoleNotInstalled()
{ {
QMessageBox::critical( parent, QMessageBox::critical( this,
parent->tr( "Konsole not installed"), tr( "Konsole not installed"),
parent->tr( "Please install KDE Konsole and try again!" ), tr( "Please install KDE Konsole and try again!" ),
QMessageBox::Ok ); QMessageBox::Ok );
} }
@ -68,7 +68,7 @@ InteractiveTerminalPage::onActivate()
{ {
// And all of this hoping the Konsole application is installed. If not, // And all of this hoping the Konsole application is installed. If not,
// tough cookies. // tough cookies.
errorKonsoleNotInstalled( this ); errorKonsoleNotInstalled();
return ; return ;
} }
@ -80,7 +80,7 @@ InteractiveTerminalPage::onActivate()
if ( !p ) if ( !p )
{ {
// One more opportunity for the loading operation to fail. // One more opportunity for the loading operation to fail.
errorKonsoleNotInstalled( this ); errorKonsoleNotInstalled();
return; return;
} }
@ -89,7 +89,7 @@ InteractiveTerminalPage::onActivate()
if ( !t ) if ( !t )
{ {
// This is why we can't have nice things. // This is why we can't have nice things.
errorKonsoleNotInstalled( this ); errorKonsoleNotInstalled();
return; return;
} }

View File

@ -39,6 +39,8 @@ private:
QWidget* m_termHostWidget; QWidget* m_termHostWidget;
QString m_command; QString m_command;
QLabel* m_headerLabel; QLabel* m_headerLabel;
void errorKonsoleNotInstalled();
}; };
#endif // INTERACTIVETERMINALPAGE_H #endif // INTERACTIVETERMINALPAGE_H