change account deletion process
The account deletion was performed by solely clicking the bin icon
in the configuration account panel of a selected account.
This was done without warning nor confirmation.
This patch moves the dedicated button to the account list bottom
as in the other desktop clients, and adds a confimation popup,
summarising the account identifiers (in order, alias, registered name,
ringID), and displays a warning about losing the account in case
it hasn't been exported or added to another device.
Change-Id: I259388da9e143400ab65e88d1fb7c223dbfbff19
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
diff --git a/RingWinClient.pro b/RingWinClient.pro
index 23c6ee1..d7681cd 100644
--- a/RingWinClient.pro
+++ b/RingWinClient.pro
@@ -77,7 +77,8 @@
contactrequestwidget.cpp \
contactrequestitemdelegate.cpp \
quickactcontactrequestwidget.cpp \
- contactrequestlistwidget.cpp
+ contactrequestlistwidget.cpp \
+ deleteaccountdialog.cpp
HEADERS += mainwindow.h \
callwidget.h \
@@ -118,7 +119,8 @@
contactrequestwidget.h \
contactrequestitemdelegate.h \
quickactcontactrequestwidget.h \
- contactrequestlistwidget.h
+ contactrequestlistwidget.h \
+ deleteaccountdialog.h
contains(DEFINES, URI_PROTOCOL) {
HEADERS += shmclient.h
@@ -145,7 +147,8 @@
sendcontactrequestwidget.ui \
currentaccountwidget.ui \
contactrequestwidget.ui \
- quickactcontactrequestwidget.ui
+ quickactcontactrequestwidget.ui \
+ deleteaccountdialog.ui
win32: LIBS += -lole32 -luuid -lshlwapi
LIBS += -lqrencode