From 00585bc8233d4db631b9fb84b20fc1a4dfa0e28c Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Tue, 16 Jul 2013 19:06:46 +0200 Subject: Fixed status update. Prevent opening the same folder two times in a session. --- src/exception.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/exception.cpp') diff --git a/src/exception.cpp b/src/exception.cpp index 7dd40992..92ce1a30 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -466,6 +466,18 @@ exception* folder_not_found::clone() const { return new folder_not_found(*this); const char* folder_not_found::name() const throw() { return "folder_not_found"; } +// +// folder_already_open +// + +folder_already_open::~folder_already_open() throw() {} +folder_already_open::folder_already_open(const exception& other) + : net_exception("Folder is already open in the same session.", other) {} + +exception* folder_already_open::clone() const { return new folder_already_open(*this); } +const char* folder_already_open::name() const throw() { return "folder_already_open"; } + + // // message_not_found // -- cgit v1.2.3