FIX:fixed a crash caused by mobile devices when switching languages
Change-Id: I7f28bf6bd917b16a798eea9b661987205ab3e1c8
This commit is contained in:
parent
cb569fdb55
commit
4e4472c5b6
|
@ -1157,6 +1157,10 @@ void GUI_App::shutdown()
|
||||||
{
|
{
|
||||||
BOOST_LOG_TRIVIAL(info) << "shutdown";
|
BOOST_LOG_TRIVIAL(info) << "shutdown";
|
||||||
|
|
||||||
|
if (m_removable_drive_manager) {
|
||||||
|
removable_drive_manager()->shutdown();
|
||||||
|
}
|
||||||
|
|
||||||
if (m_is_recreating_gui) return;
|
if (m_is_recreating_gui) return;
|
||||||
m_is_closing = true;
|
m_is_closing = true;
|
||||||
stop_sync_user_preset();
|
stop_sync_user_preset();
|
||||||
|
|
|
@ -387,6 +387,7 @@ std::string RemovableDriveManager::get_removable_drive_from_path(const std::stri
|
||||||
|
|
||||||
void RemovableDriveManager::init(wxEvtHandler *callback_evt_handler)
|
void RemovableDriveManager::init(wxEvtHandler *callback_evt_handler)
|
||||||
{
|
{
|
||||||
|
//no need use assert
|
||||||
assert(! m_initialized);
|
assert(! m_initialized);
|
||||||
assert(m_callback_evt_handler == nullptr);
|
assert(m_callback_evt_handler == nullptr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue