added import files into Profile menu

This commit is contained in:
Rafael 2016-04-13 00:47:07 +02:00
parent 6ff8de8972
commit f35647f76c
5 changed files with 25 additions and 4 deletions

View file

@ -325,8 +325,8 @@ void ProfileInterface::pictureDeleted_f(QWidget *picWidget_)
SnapmaticWidget *picWidget = (SnapmaticWidget*)picWidget_;
SnapmaticPicture *picture = picWidget->getPicture();
if (picWidget->isSelected()) { picWidget->setSelected(false); }
picWidget->close();
widgets.remove(picWidget);
picWidget->close();
picWidget->deleteLater();
pictures.removeAll(picture);
delete picture;
@ -774,3 +774,8 @@ void ProfileInterface::deleteSelected()
QMessageBox::information(this, tr("Remove selected"), tr("No Snapmatic pictures or Savegames files are selected"));
}
}
void ProfileInterface::importFiles()
{
on_cmdImport_clicked();
}