From e93cf27adb924e5838ba6edf2bf8c28445a6da3e Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Sun, 27 Jan 2019 21:00:24 -0800 Subject: [PATCH] Fixed a bug where the last address label wouldn't be removed --- src/addressbook.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/addressbook.cpp b/src/addressbook.cpp index 7d74cbd..c839b18 100644 --- a/src/addressbook.cpp +++ b/src/addressbook.cpp @@ -254,9 +254,6 @@ void AddressBook::readFromStorage() { } void AddressBook::writeToStorage() { - if (allLabels.isEmpty()) - return; - QFile file(AddressBook::writeableFile()); file.open(QIODevice::ReadWrite | QIODevice::Truncate); QDataStream out(&file); // we will serialize the data into the file