double click on ProfileInterface widgets open specific dialog, german
translation updated
This commit is contained in:
parent
9062c88aea
commit
5c4f390bd2
15 changed files with 300 additions and 181 deletions
|
@ -1,6 +1,6 @@
|
|||
#include "SavegameDialog.h"
|
||||
#include "ui_SavegameDialog.h"
|
||||
|
||||
#include "SavegameCopy.h"
|
||||
#include <QMessageBox>
|
||||
|
||||
SavegameDialog::SavegameDialog(QWidget *parent) :
|
||||
|
@ -16,7 +16,7 @@ SavegameDialog::~SavegameDialog()
|
|||
delete ui;
|
||||
}
|
||||
|
||||
void SavegameDialog::setSavegameData(SavegameData *savegame, bool readOk)
|
||||
void SavegameDialog::setSavegameData(SavegameData *savegame, QString savegamePath, bool readOk)
|
||||
{
|
||||
// Showing error if reading error
|
||||
if (!readOk)
|
||||
|
@ -24,7 +24,7 @@ void SavegameDialog::setSavegameData(SavegameData *savegame, bool readOk)
|
|||
QMessageBox::warning(this,tr("Savegame Viewer"),tr("Failed at %1").arg(savegame->getLastStep()));
|
||||
return;
|
||||
}
|
||||
|
||||
sgdPath = savegamePath;
|
||||
ui->labSavegameText->setText(savegameLabStr.arg(savegame->getSavegameStr()));
|
||||
}
|
||||
|
||||
|
@ -32,3 +32,8 @@ void SavegameDialog::on_cmdClose_clicked()
|
|||
{
|
||||
this->close();
|
||||
}
|
||||
|
||||
void SavegameDialog::on_cmdCopy_clicked()
|
||||
{
|
||||
SavegameCopy::CopySavegame(this, sgdPath);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue