From 9a368976dd960c6ba7ac7446b77c3ae05e0fa14a Mon Sep 17 00:00:00 2001
From: Rafael <Syping@users.noreply.github.com>
Date: Sun, 3 Apr 2016 12:54:55 +0200
Subject: [PATCH] add delete selected content, german translation updated

---
 ProfileInterface.cpp |  48 +++++++++++++++++++++--
 ProfileInterface.h   |   3 ++
 lang/gta5sync_ru.ts  |  88 +++++++++++++++++++++++++------------------
 res/gta5sync_de.qm   | Bin 14264 -> 14743 bytes
 res/gta5sync_de.ts   |  88 +++++++++++++++++++++++++------------------
 5 files changed, 152 insertions(+), 75 deletions(-)

diff --git a/ProfileInterface.cpp b/ProfileInterface.cpp
index daf2eb4..b7db28f 100755
--- a/ProfileInterface.cpp
+++ b/ProfileInterface.cpp
@@ -155,7 +155,12 @@ void ProfileInterface::profileLoaded_p()
 
 void ProfileInterface::savegameDeleted()
 {
-    SavegameWidget *sgdWidget = (SavegameWidget*)sender();
+    savegameDeleted_f((SavegameWidget*)sender());
+}
+
+void ProfileInterface::savegameDeleted_f(QWidget *sgdWidget_)
+{
+    SavegameWidget *sgdWidget = (SavegameWidget*)sgdWidget_;
     SavegameData *savegame = sgdWidget->getSavegame();
     if (sgdWidget->isSelected()) { sgdWidget->setSelected(false); }
     sgdWidget->close();
@@ -165,7 +170,12 @@ void ProfileInterface::savegameDeleted()
 
 void ProfileInterface::pictureDeleted()
 {
-    SnapmaticWidget *picWidget = (SnapmaticWidget*)sender();
+    pictureDeleted_f((SnapmaticWidget*)sender());
+}
+
+void ProfileInterface::pictureDeleted_f(QWidget *picWidget_)
+{
+    SnapmaticWidget *picWidget = (SnapmaticWidget*)picWidget_;
     SnapmaticPicture *picture = picWidget->getPicture();
     if (picWidget->isSelected()) { picWidget->setSelected(false); }
     picWidget->close();
@@ -505,5 +515,37 @@ void ProfileInterface::exportSelected()
 
 void ProfileInterface::deleteSelected()
 {
-
+    if (QMessageBox::Yes == QMessageBox::warning(this, tr("Delete selected"), tr("You really want delete the selected content?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No))
+    {
+        foreach (ProfileWidget *widget, widgets.keys())
+        {
+            if (widget->isSelected())
+            {
+                if (widgets[widget] == "SnapmaticWidget")
+                {
+                    SnapmaticWidget *picWidget = (SnapmaticWidget*)widget;
+                    SnapmaticPicture *picture = picWidget->getPicture();
+                    QString fileName = picture->getPictureFileName();
+                    if (!QFile::exists(fileName) || QFile::remove(fileName))
+                    {
+                        pictureDeleted_f(picWidget);
+                    }
+                }
+                else if (widgets[widget] == "SavegameWidget")
+                {
+                    SavegameWidget *sgdWidget = (SavegameWidget*)widget;
+                    SavegameData *savegame = sgdWidget->getSavegame();
+                    QString fileName = savegame->getSavegameFileName();
+                    if (!QFile::exists(fileName) || QFile::remove(fileName))
+                    {
+                        savegameDeleted_f(sgdWidget);
+                    }
+                }
+            }
+        }
+        if (selectedWidgts != 0)
+        {
+            QMessageBox::warning(this, tr("Delete selected"), tr("Failed at delete all selected content"));
+        }
+    }
 }
diff --git a/ProfileInterface.h b/ProfileInterface.h
index 868c916..5001be5 100755
--- a/ProfileInterface.h
+++ b/ProfileInterface.h
@@ -23,6 +23,7 @@
 #include "SnapmaticWidget.h"
 #include "ProfileDatabase.h"
 #include "DatabaseThread.h"
+#include "SavegameWidget.h"
 #include "ProfileLoader.h"
 #include "ProfileWidget.h"
 #include "ExportThread.h"
@@ -83,6 +84,8 @@ private:
 
     bool importSnapmaticPicture(SnapmaticPicture *picture, QString picPath);
     bool importSavegameData(SavegameData *savegame, QString sgdPath);
+    void savegameDeleted_f(QWidget *sgdWidget);
+    void pictureDeleted_f(QWidget *picWidget);
 
 signals:
     void profileLoaded();
diff --git a/lang/gta5sync_ru.ts b/lang/gta5sync_ru.ts
index b1e91c3..99e36ca 100755
--- a/lang/gta5sync_ru.ts
+++ b/lang/gta5sync_ru.ts
@@ -163,16 +163,16 @@
     </message>
     <message>
         <location filename="../ProfileInterface.ui" line="179"/>
-        <location filename="../ProfileInterface.cpp" line="192"/>
-        <location filename="../ProfileInterface.cpp" line="226"/>
-        <location filename="../ProfileInterface.cpp" line="241"/>
-        <location filename="../ProfileInterface.cpp" line="269"/>
-        <location filename="../ProfileInterface.cpp" line="276"/>
-        <location filename="../ProfileInterface.cpp" line="282"/>
-        <location filename="../ProfileInterface.cpp" line="297"/>
+        <location filename="../ProfileInterface.cpp" line="202"/>
+        <location filename="../ProfileInterface.cpp" line="236"/>
+        <location filename="../ProfileInterface.cpp" line="251"/>
+        <location filename="../ProfileInterface.cpp" line="279"/>
+        <location filename="../ProfileInterface.cpp" line="286"/>
+        <location filename="../ProfileInterface.cpp" line="292"/>
         <location filename="../ProfileInterface.cpp" line="307"/>
-        <location filename="../ProfileInterface.cpp" line="343"/>
-        <location filename="../ProfileInterface.cpp" line="349"/>
+        <location filename="../ProfileInterface.cpp" line="317"/>
+        <location filename="../ProfileInterface.cpp" line="353"/>
+        <location filename="../ProfileInterface.cpp" line="359"/>
         <source>Import copy</source>
         <translation>Импортировать копию</translation>
     </message>
@@ -187,118 +187,134 @@
         <translation>Загрузка...</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="196"/>
+        <location filename="../ProfileInterface.cpp" line="206"/>
         <source>All profile files (SGTA* PGTA*)</source>
         <translation>Все файлы профиля (SGTA* PGTA*)</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="197"/>
+        <location filename="../ProfileInterface.cpp" line="207"/>
         <source>Savegames files (SGTA*)</source>
         <translation>Файлы сохранения (SGTA*)</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="198"/>
+        <location filename="../ProfileInterface.cpp" line="208"/>
         <source>Snapmatic pictures (PGTA*)</source>
         <translation>Картинка Snapmatic (PGTA*)</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="199"/>
+        <location filename="../ProfileInterface.cpp" line="209"/>
         <source>All files (**)</source>
         <translation>Все файлы (**)</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="226"/>
+        <location filename="../ProfileInterface.cpp" line="236"/>
         <source>Failed to read Snapmatic picture</source>
         <translation>Не удалось загрузить картинку Snapmatic</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="241"/>
+        <location filename="../ProfileInterface.cpp" line="251"/>
         <source>Failed to read Savegame file</source>
         <translation>Не удалось загрузить файл сохранения</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="269"/>
+        <location filename="../ProfileInterface.cpp" line="279"/>
         <source>Can&apos;t import %1 because of not valid file format</source>
         <translation>Не получилось импортировать %1 из-за неправильного формата файла</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="276"/>
-        <location filename="../ProfileInterface.cpp" line="282"/>
+        <location filename="../ProfileInterface.cpp" line="286"/>
+        <location filename="../ProfileInterface.cpp" line="292"/>
         <source>No valid file is selected</source>
         <translation>Выбранный файл неверен</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="297"/>
+        <location filename="../ProfileInterface.cpp" line="307"/>
         <source>Failed to import copy of Snapmatic picture because the file not begin with PGTA</source>
         <translation>Не удалось имортировать копию картинки Snapmatic, т.к. файл не начинается с PGTA</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="307"/>
+        <location filename="../ProfileInterface.cpp" line="317"/>
         <source>Failed to import copy of Snapmatic picture because the copy failed</source>
         <translation>Не получилось имортировать копию картинки Snapmatic, потому что не удалось его скопировать</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="343"/>
+        <location filename="../ProfileInterface.cpp" line="353"/>
         <source>Failed to import copy of Savegame file because the copy failed</source>
         <translation>Не получилось имортировать копию сохранения, потому что не удалось его скопировать</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="349"/>
+        <location filename="../ProfileInterface.cpp" line="359"/>
         <source>Failed to import copy of Savegame file because no free Savegame slot left</source>
         <translation>Не получилось имортировать копию сохранения, потому что не осталось свободных под них слотов</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="403"/>
-        <location filename="../ProfileInterface.cpp" line="427"/>
-        <location filename="../ProfileInterface.cpp" line="487"/>
+        <location filename="../ProfileInterface.cpp" line="413"/>
+        <location filename="../ProfileInterface.cpp" line="437"/>
+        <location filename="../ProfileInterface.cpp" line="497"/>
         <source>Export selected</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="422"/>
-        <location filename="../ProfileInterface.cpp" line="430"/>
+        <location filename="../ProfileInterface.cpp" line="432"/>
+        <location filename="../ProfileInterface.cpp" line="440"/>
         <source>Export and Copy pictures</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="423"/>
-        <location filename="../ProfileInterface.cpp" line="435"/>
+        <location filename="../ProfileInterface.cpp" line="433"/>
+        <location filename="../ProfileInterface.cpp" line="445"/>
         <source>Export pictures</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="424"/>
-        <location filename="../ProfileInterface.cpp" line="439"/>
+        <location filename="../ProfileInterface.cpp" line="434"/>
+        <location filename="../ProfileInterface.cpp" line="449"/>
         <source>Copy pictures</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="427"/>
+        <location filename="../ProfileInterface.cpp" line="437"/>
         <source>How should we deal with the Snapmatic pictures?</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="453"/>
+        <location filename="../ProfileInterface.cpp" line="463"/>
         <source>Export selected...</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="454"/>
+        <location filename="../ProfileInterface.cpp" line="464"/>
         <source>Initializing...</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="487"/>
+        <location filename="../ProfileInterface.cpp" line="497"/>
         <source>Export failed with...
 
 %1</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <location filename="../ProfileInterface.cpp" line="518"/>
+        <location filename="../ProfileInterface.cpp" line="548"/>
+        <source>Delete selected</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../ProfileInterface.cpp" line="518"/>
+        <source>You really want delete the selected content?</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <location filename="../ProfileInterface.cpp" line="548"/>
+        <source>Failed at delete all selected content</source>
+        <translation type="unfinished"></translation>
+    </message>
     <message>
         <location filename="../ExportThread.cpp" line="50"/>
         <location filename="../ExportThread.cpp" line="65"/>
         <location filename="../ExportThread.cpp" line="84"/>
-        <location filename="../ProfileInterface.cpp" line="454"/>
+        <location filename="../ProfileInterface.cpp" line="464"/>
         <source>Current export job: %1</source>
         <translation type="unfinished"></translation>
     </message>
diff --git a/res/gta5sync_de.qm b/res/gta5sync_de.qm
index 3a8b7ee33c7423a77b466d74ae132217813fb97d..f5d16d2cba199f75cb5b3ce9327e747fe3729ea9 100755
GIT binary patch
delta 1209
zcmZXTe@qi+7{|Y~cWv+5Qi`RN^6P48hwE>pMwcz33uaE4i*A3A=t6}vRJ+!+1wuAg
zm&N^xn@cLgCCnew5vF7r!7+#%L5wjbn=n=}nz2RDkl~UAK{SSBd&-+ES$4_Y=Y5`g
z-{<|__jzw1){*$cl<Ef8)dmQ5Mro08<t(Gi3hp8Y1Y+RE9KdRT`_oU%fFHdIJZ)k0
z_Tss9HGp*jFRpC|cpsx?mQnhi(HFq}3sImXtk`w+A&?U46ra~F0EI5asrmpQ`WS5<
zMNjA+V7Dp0{VoVNwTk``J5X^^aqUwBkQ-1;b(sL~Zl!5>2y`i>>%Wk?8Ak7na$}ba
zXy=vk_5`q^hEr*;Q0(Jgwwwf>+QXgycn&G}_R)X@_)ZW>k#C&%H{e%s=Z{iZ|1-oK
zVw9*PL9LAbFSs7}mlXFfx^{4*Eyu{o(~Rz2+=J;sK$qe9LsY2T$D6x50KJ<(5=;VX
z?(@e>GAY1Z$alKV0+oY|o*Vp+sc9hJt=ij0g7{miH&nFonuBWfy?l!Is>O#?K>syk
zX$zzCH+9kDIckkx9lJRN7+zDyZ;#Wwu)2M$nb!BKm*OVC;?$I0@dBnNnr+>wQR-o>
zW@LINC0@`>ow!6BzbWLke+J~eBNR?n1D+<q`IxMCcM5Co6jARAg*_crWZ@Gb{)i5Q
z?OoyU^WOlg4hl!S)GFb3;aW9)*h-&pw|4<3*e(2Zlj^V9z!=OGbM8}X?9-wnb!ZFq
z@|L*m+!-LaRjmDk;>wrAfsz8CbV>Ya6IowAD^8TZ3b;NL?{wTHf%A<132||qjn*C3
z=JdZs^Ve(7Ea_<d0;AW+Se4Wcy-vNa8qz*6YzK-PblOQe6IFIy%2hc}Uvx>gQ{4y{
z)w&Pr$tp)e*Xg5EUlC+<Wprl^>w&Tz`f5Env|?Dl>Fo?Tc8W3ZmHrhI2{()|mJRDK
z*O3#(+xi<dbVkJY^pn<X3%T42^<hABoH5TEWCPo;1~IF=;sB#Nk1^mdTpl2+tXmD^
znqHvDL#u<=`_3sJ<)?pG{cQSu$=r9^Y*FMKNRJhlriYy+`WD0xg@h0yh@?L<S~fza
za0?}ymXk@yn(PmwqT8`K6pqM^QYa}k$`Ls!OQA?aO3<(&N$G}IG$}`u>A5m%-=M`J
z1ooj8i)f%qR0RooN@zqgJzEh*9Q$e0@bdd?UPd&1)M(Dn4*n}49jhqzxa(rgQe37T
Y+oaY|^j`_dCi#C7HY{uS*)~(~58yCFH2?qr

delta 961
zcmXYvX-HII6oy~#-0{xcyr$zaHa0rr?kqW0*pF~23&l1p!YHvw$sz--D2k?NBa#wI
zEwV*4v$9ZJG6E|lqNtS0L_;D?BnvD}^G8s}zV4sroXdC4_nz~9l_l-F%Z#2f@O1|O
z(Z*<TF^2!oW3$0O<N;Sb_?}2${$lXo<^u^T^xe;Zn6-@dF)T?+2TU)Jxu_h_yBG~)
zjPs@#9XqhIr3je2ncMVi3h;<I+?AC-fj|p)Jud-}T#S|iu3^gv5WbOXy}uBMSjM$=
z+5qcM?s<g<_#|*cbw<Emp))@20DZc!*KYxSl+h8UORdWX<Vjur>Jq?jlJ}OMQtsl{
z1YZLpFY|ZK{(uLL8VX2&qmM|6oHFqbF`2(}j@mj)h+f2-L>&ogWORPu8|*hIA7P9=
z!*}nyK%1;)j4S6Sh93aRJAGh%C7{~%r3?1}?g;%w^E)6w)>p;XdVr{j*?=bT(ZBQz
zlTy2P!2uGY@Ap3FO&2D#3BrgU<pqK?MGe$@jOHDTkwJoK<_B3*DD3VV0<>JAc;F44
zD-_Cm_EP=0@VnRu1cewvpE?0!y&<c<o2)x&=p6QB1OC&7p{q~m;zOcu`6a;jm>4ve
z0>oE~Q8TpixL$G5Clh%li(4xfkl;kI_?H{7JQ7bVZ3Lp*#8M|&Bz_d1r_exQ+r{xd
z>KnbEF>!_D^_8r!nx)7i8Dw3*ly$oXNIWjB^n9ToQKzJKa{yreF1<>lRnN0Y?=9<r
z*e>Z)<!5?)nlzmhP6ZvZSKDDa=a6fDD|Eqs+A~@1zAJa^B9Gm_<Oyvx5VAp$2g!T)
zCM7;*k_Kp1vW0EH96>pqN1L%VD4r@8y>4rf@{e(<QmZWnLYJ#4Ds9BSNKHFRUKv+0
zx`xzsMiQ)bGKRLOT{$%QoB_2ro!)|UN*xTDwQPw`OI{&hxX9@1WDE<?q*>wCTa0lT
zRu;H&wXSwrkttbwV`u_`!>M|KK&^C1=bLP)%?7^7uUQTX=9&jh!D4fxZ8YF7+xhwJ

diff --git a/res/gta5sync_de.ts b/res/gta5sync_de.ts
index 5f54c42..df7b213 100755
--- a/res/gta5sync_de.ts
+++ b/res/gta5sync_de.ts
@@ -198,16 +198,16 @@
     </message>
     <message>
         <location filename="../ProfileInterface.ui" line="179"/>
-        <location filename="../ProfileInterface.cpp" line="192"/>
-        <location filename="../ProfileInterface.cpp" line="226"/>
-        <location filename="../ProfileInterface.cpp" line="241"/>
-        <location filename="../ProfileInterface.cpp" line="269"/>
-        <location filename="../ProfileInterface.cpp" line="276"/>
-        <location filename="../ProfileInterface.cpp" line="282"/>
-        <location filename="../ProfileInterface.cpp" line="297"/>
+        <location filename="../ProfileInterface.cpp" line="202"/>
+        <location filename="../ProfileInterface.cpp" line="236"/>
+        <location filename="../ProfileInterface.cpp" line="251"/>
+        <location filename="../ProfileInterface.cpp" line="279"/>
+        <location filename="../ProfileInterface.cpp" line="286"/>
+        <location filename="../ProfileInterface.cpp" line="292"/>
         <location filename="../ProfileInterface.cpp" line="307"/>
-        <location filename="../ProfileInterface.cpp" line="343"/>
-        <location filename="../ProfileInterface.cpp" line="349"/>
+        <location filename="../ProfileInterface.cpp" line="317"/>
+        <location filename="../ProfileInterface.cpp" line="353"/>
+        <location filename="../ProfileInterface.cpp" line="359"/>
         <source>Import copy</source>
         <translation>Kopie importieren</translation>
     </message>
@@ -230,118 +230,134 @@
         <translation>Lade...</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="196"/>
+        <location filename="../ProfileInterface.cpp" line="206"/>
         <source>All profile files (SGTA* PGTA*)</source>
         <translation>Alle Profildateien (SGTA* PGTA*)</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="197"/>
+        <location filename="../ProfileInterface.cpp" line="207"/>
         <source>Savegames files (SGTA*)</source>
         <translation>Spielstanddateien (SGTA*)</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="198"/>
+        <location filename="../ProfileInterface.cpp" line="208"/>
         <source>Snapmatic pictures (PGTA*)</source>
         <translation>Snapmatic Bilder (PGTA*)</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="199"/>
+        <location filename="../ProfileInterface.cpp" line="209"/>
         <source>All files (**)</source>
         <translation>Alle Dateien (**)</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="226"/>
+        <location filename="../ProfileInterface.cpp" line="236"/>
         <source>Failed to read Snapmatic picture</source>
         <translation>Fehler beim Lesen vom Snapmatic Bild</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="241"/>
+        <location filename="../ProfileInterface.cpp" line="251"/>
         <source>Failed to read Savegame file</source>
         <translation>Fehler beim Lesen von Spielstanddatei</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="269"/>
+        <location filename="../ProfileInterface.cpp" line="279"/>
         <source>Can&apos;t import %1 because of not valid file format</source>
         <translation>Kann %1 nicht importieren weil das Dateiformat nicht gültig ist</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="276"/>
-        <location filename="../ProfileInterface.cpp" line="282"/>
+        <location filename="../ProfileInterface.cpp" line="286"/>
+        <location filename="../ProfileInterface.cpp" line="292"/>
         <source>No valid file is selected</source>
         <translation>Keine gültige Datei wurde ausgewählt</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="297"/>
+        <location filename="../ProfileInterface.cpp" line="307"/>
         <source>Failed to import copy of Snapmatic picture because the file not begin with PGTA</source>
         <translation>Fehlgeschlagenen beim Import vom Snapmatic Bild weil die Datei nicht mit PGTA begint </translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="307"/>
+        <location filename="../ProfileInterface.cpp" line="317"/>
         <source>Failed to import copy of Snapmatic picture because the copy failed</source>
         <translation>Fehlgeschlagenen beim Import vom Snapmatic Bild weil kopieren fehlgeschlagen ist</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="343"/>
+        <location filename="../ProfileInterface.cpp" line="353"/>
         <source>Failed to import copy of Savegame file because the copy failed</source>
         <translation>Fehlgeschlagenen beim Import vom Spielstand weil kopieren fehlgeschlagen ist</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="349"/>
+        <location filename="../ProfileInterface.cpp" line="359"/>
         <source>Failed to import copy of Savegame file because no free Savegame slot left</source>
         <translation>Fehlgeschlagenen beim Import vom Spielstand weil kein Spielstandslot mehr übrig ist</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="403"/>
-        <location filename="../ProfileInterface.cpp" line="427"/>
-        <location filename="../ProfileInterface.cpp" line="487"/>
+        <location filename="../ProfileInterface.cpp" line="413"/>
+        <location filename="../ProfileInterface.cpp" line="437"/>
+        <location filename="../ProfileInterface.cpp" line="497"/>
         <source>Export selected</source>
         <translation>Auswahl exportieren</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="422"/>
-        <location filename="../ProfileInterface.cpp" line="430"/>
+        <location filename="../ProfileInterface.cpp" line="432"/>
+        <location filename="../ProfileInterface.cpp" line="440"/>
         <source>Export and Copy pictures</source>
         <translation>Bilder exportieren und kopieren</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="423"/>
-        <location filename="../ProfileInterface.cpp" line="435"/>
+        <location filename="../ProfileInterface.cpp" line="433"/>
+        <location filename="../ProfileInterface.cpp" line="445"/>
         <source>Export pictures</source>
         <translation>Bilder exportieren</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="424"/>
-        <location filename="../ProfileInterface.cpp" line="439"/>
+        <location filename="../ProfileInterface.cpp" line="434"/>
+        <location filename="../ProfileInterface.cpp" line="449"/>
         <source>Copy pictures</source>
         <translation>Bilder kopieren</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="427"/>
+        <location filename="../ProfileInterface.cpp" line="437"/>
         <source>How should we deal with the Snapmatic pictures?</source>
         <translation>Wie sollen wir mit den Snapmatic Bilder umgehen?</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="453"/>
+        <location filename="../ProfileInterface.cpp" line="463"/>
         <source>Export selected...</source>
         <translation>Auswahl exportieren...</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="454"/>
+        <location filename="../ProfileInterface.cpp" line="464"/>
         <source>Initializing...</source>
         <translation>Initialisierung...</translation>
     </message>
     <message>
-        <location filename="../ProfileInterface.cpp" line="487"/>
+        <location filename="../ProfileInterface.cpp" line="497"/>
         <source>Export failed with...
 
 %1</source>
         <translation>Exportieren fehlgeschlagen bei...\n%1</translation>
     </message>
+    <message>
+        <location filename="../ProfileInterface.cpp" line="518"/>
+        <location filename="../ProfileInterface.cpp" line="548"/>
+        <source>Delete selected</source>
+        <translation>Auswahl löschen</translation>
+    </message>
+    <message>
+        <location filename="../ProfileInterface.cpp" line="518"/>
+        <source>You really want delete the selected content?</source>
+        <translation>Möchtest du wirklich den ausgewählten Inhalt löschen?</translation>
+    </message>
+    <message>
+        <location filename="../ProfileInterface.cpp" line="548"/>
+        <source>Failed at delete all selected content</source>
+        <translation>Fehlgeschlagen beim Löschen von alle ausgewählte Inhalte</translation>
+    </message>
     <message>
         <location filename="../ExportThread.cpp" line="50"/>
         <location filename="../ExportThread.cpp" line="65"/>
         <location filename="../ExportThread.cpp" line="84"/>
-        <location filename="../ProfileInterface.cpp" line="454"/>
+        <location filename="../ProfileInterface.cpp" line="464"/>
         <source>Current export job: %1</source>
         <translation>Aktueller Exportiervorgang: %1</translation>
     </message>