mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-23 18:35:44 -05:00
[interactiveterminal] refactor again to keep Transifex happy
This commit is contained in:
parent
790073cddc
commit
d06e29b1c5
2 changed files with 10 additions and 8 deletions
|
@ -46,12 +46,12 @@ InteractiveTerminalPage::InteractiveTerminalPage( QWidget* parent )
|
|||
m_layout->addWidget( m_headerLabel );
|
||||
}
|
||||
|
||||
static void
|
||||
errorKonsoleNotInstalled( QWidget* parent)
|
||||
void
|
||||
InteractiveTerminalPage::errorKonsoleNotInstalled()
|
||||
{
|
||||
QMessageBox::critical( parent,
|
||||
parent->tr( "Konsole not installed"),
|
||||
parent->tr( "Please install KDE Konsole and try again!" ),
|
||||
QMessageBox::critical( this,
|
||||
tr( "Konsole not installed"),
|
||||
tr( "Please install KDE Konsole and try again!" ),
|
||||
QMessageBox::Ok );
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ InteractiveTerminalPage::onActivate()
|
|||
{
|
||||
// And all of this hoping the Konsole application is installed. If not,
|
||||
// tough cookies.
|
||||
errorKonsoleNotInstalled( this );
|
||||
errorKonsoleNotInstalled();
|
||||
return ;
|
||||
}
|
||||
|
||||
|
@ -80,7 +80,7 @@ InteractiveTerminalPage::onActivate()
|
|||
if ( !p )
|
||||
{
|
||||
// One more opportunity for the loading operation to fail.
|
||||
errorKonsoleNotInstalled( this );
|
||||
errorKonsoleNotInstalled();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -89,7 +89,7 @@ InteractiveTerminalPage::onActivate()
|
|||
if ( !t )
|
||||
{
|
||||
// This is why we can't have nice things.
|
||||
errorKonsoleNotInstalled( this );
|
||||
errorKonsoleNotInstalled();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -39,6 +39,8 @@ private:
|
|||
QWidget* m_termHostWidget;
|
||||
QString m_command;
|
||||
QLabel* m_headerLabel;
|
||||
|
||||
void errorKonsoleNotInstalled();
|
||||
};
|
||||
|
||||
#endif // INTERACTIVETERMINALPAGE_H
|
||||
|
|
Loading…
Add table
Reference in a new issue