refactor: Use bilingual_str::empty()

pull/764/head
Hennadii Stepanov 5 years ago
parent 365f1082e1
commit d1cca129b4
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

@ -245,7 +245,7 @@ void CreateWalletActivity::finish()
{
destroyProgressDialog();
if (!m_error_message.original.empty()) {
if (!m_error_message.empty()) {
QMessageBox::critical(m_parent_widget, tr("Create wallet failed"), QString::fromStdString(m_error_message.translated));
} else if (!m_warning_message.empty()) {
QMessageBox::warning(m_parent_widget, tr("Create wallet warning"), QString::fromStdString(Join(m_warning_message, Untranslated("\n")).translated));
@ -286,7 +286,7 @@ void OpenWalletActivity::finish()
{
destroyProgressDialog();
if (!m_error_message.original.empty()) {
if (!m_error_message.empty()) {
QMessageBox::critical(m_parent_widget, tr("Open wallet failed"), QString::fromStdString(m_error_message.translated));
} else if (!m_warning_message.empty()) {
QMessageBox::warning(m_parent_widget, tr("Open wallet warning"), QString::fromStdString(Join(m_warning_message, Untranslated("\n")).translated));

Loading…
Cancel
Save