added savegame delete function, german translation updated
This commit is contained in:
parent
4922ce7173
commit
24f51f3af8
7 changed files with 103 additions and 24 deletions
|
@ -94,6 +94,7 @@ void ProfileInterface::on_savegameLoaded(SavegameData *savegame, QString savegam
|
|||
ui->vlSavegame->addWidget(sgdWidget);
|
||||
widgets.append(sgdWidget);
|
||||
savegames.append(savegame);
|
||||
QObject::connect(sgdWidget, SIGNAL(savegameDeleted()), this, SLOT(on_savegameDeleted()));
|
||||
}
|
||||
|
||||
void ProfileInterface::on_pictureLoaded(SnapmaticPicture *picture, QString picturePath)
|
||||
|
@ -121,6 +122,14 @@ void ProfileInterface::on_profileLoaded()
|
|||
ui->cmdCloseProfile->setEnabled(true);
|
||||
}
|
||||
|
||||
void ProfileInterface::on_savegameDeleted()
|
||||
{
|
||||
SavegameWidget *sgdWidget = (SavegameWidget*)sender();
|
||||
widgets.removeAll(sgdWidget);
|
||||
sgdWidget->deleteLater();
|
||||
delete sgdWidget;
|
||||
}
|
||||
|
||||
void ProfileInterface::on_pictureDeleted()
|
||||
{
|
||||
SnapmaticWidget *picWidget = (SnapmaticWidget*)sender();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue