mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Make GetWarnings() return bilingual_str
This commit is contained in:
@@ -155,7 +155,7 @@ BitcoinCore::BitcoinCore(interfaces::Node& node) :
|
||||
void BitcoinCore::handleRunawayException(const std::exception *e)
|
||||
{
|
||||
PrintExceptionContinue(e, "Runaway exception");
|
||||
Q_EMIT runawayException(QString::fromStdString(m_node.getWarnings()));
|
||||
Q_EMIT runawayException(QString::fromStdString(m_node.getWarnings().translated));
|
||||
}
|
||||
|
||||
void BitcoinCore::initialize()
|
||||
@@ -599,10 +599,10 @@ int GuiMain(int argc, char* argv[])
|
||||
}
|
||||
} catch (const std::exception& e) {
|
||||
PrintExceptionContinue(&e, "Runaway exception");
|
||||
app.handleRunawayException(QString::fromStdString(node->getWarnings()));
|
||||
app.handleRunawayException(QString::fromStdString(node->getWarnings().translated));
|
||||
} catch (...) {
|
||||
PrintExceptionContinue(nullptr, "Runaway exception");
|
||||
app.handleRunawayException(QString::fromStdString(node->getWarnings()));
|
||||
app.handleRunawayException(QString::fromStdString(node->getWarnings().translated));
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user