From 35d2b7bc8e8fd98c963f4c9ddcf4eb17b4f5a5cd Mon Sep 17 00:00:00 2001 From: Arttu Tarkiainen Date: Mon, 17 Oct 2022 17:03:22 +0300 Subject: Show information dialog after clearing metadata cache Show dialog indicating success or failure, including the error message, to add some feedback for the action. Adjust related to code to handle return value of GenericDataCache::clear() function, and fix the wrong return value when an error occurs while deleting cache subdirectories. Change-Id: Ib35f2db3711d85f567f7918c903aebf4236d7041 Reviewed-by: Katja Marttila --- src/sdk/tabcontroller.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sdk/tabcontroller.h') diff --git a/src/sdk/tabcontroller.h b/src/sdk/tabcontroller.h index a92e724b4..236ff9fb8 100644 --- a/src/sdk/tabcontroller.h +++ b/src/sdk/tabcontroller.h @@ -61,6 +61,7 @@ private Q_SLOTS: void restartWizard(); void onSettingsButtonClicked(); void onAboutApplicationClicked(); + void onClearCacheClicked(); void onCurrentIdChanged(int newId); void onNetworkSettingsChanged(const QInstaller::Settings &settings); -- cgit v1.2.3