From 081ad033d4d48e662cbf9bf6adbd625cfd7e9b45 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 18 Apr 2015 17:58:47 +0200 Subject: [PATCH] actions: add: confirm when the whole database is about to be added --- src/actions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/actions.cpp b/src/actions.cpp index 5c666419..3cde6286 100644 --- a/src/actions.cpp +++ b/src/actions.cpp @@ -943,6 +943,10 @@ void Add::run() path = wFooter->prompt(); } + // confirm when one wants to add the whole database + if (path.empty()) + confirmAction("Are you sure you want to add the whole database?"); + Statusbar::put() << "Adding..."; wFooter->refresh(); if (myScreen == myPlaylistEditor)