More encapsulation and add new class Signal for handling custom events.

This commit is contained in:
apoorv569
2021-12-13 23:42:12 +05:30
parent 7dd7f2b3c1
commit 9e0be8f55a
31 changed files with 5008 additions and 2340 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ void show_modal_dialog_and_log(const std::string &message, const std::string &ti
const std::string &error_msg)
{
std::stringstream ss;
ss << message << error_msg;
ss << message << ": " << error_msg;
const auto msg = ss.str();
@@ -899,7 +899,7 @@ void Database::LoadHivesDatabase(wxDataViewTreeCtrl &treeCtrl)
}
catch (const std::exception &e)
{
show_modal_dialog_and_log("Error! Cannot load hive from hives table", "Error", e.what());
show_modal_dialog_and_log("Error! Cannot load data from HIVES", "Error", e.what());
}
}