Commit a42d92ee authored by cryptonotefoundation's avatar cryptonotefoundation

Fix runtime wallet error on Windows

parent d464be0b
......@@ -16,9 +16,6 @@ namespace WalletGui {
enum class TransactionType : quint8 {MINED, INPUT, OUTPUT, INOUT};
const int TRANSACTIONS_MODEL_COLUMN_COUNT =
TransactionsModel::staticMetaObject.enumerator(TransactionsModel::staticMetaObject.indexOfEnumerator("Columns")).keyCount();
namespace {
QPixmap getTransactionIcon(TransactionType _transactionType) {
......@@ -71,7 +68,7 @@ Qt::ItemFlags TransactionsModel::flags(const QModelIndex& _index) const {
}
int TransactionsModel::columnCount(const QModelIndex& _parent) const {
return TRANSACTIONS_MODEL_COLUMN_COUNT;
return TransactionsModel::staticMetaObject.enumerator(TransactionsModel::staticMetaObject.indexOfEnumerator("Columns")).keyCount();
}
int TransactionsModel::rowCount(const QModelIndex& _parent) const {
......
......@@ -41,10 +41,10 @@ int main(int argc, char* argv[]) {
#ifdef Q_OS_WIN
if(!cmdLineParseResult) {
QMessageBox::critical(nullptr, QObject::tr("Error"), cmdLineParser.errorText());
QMessageBox::critical(nullptr, QObject::tr("Error"), cmdLineParser.getErrorText());
return app.exec();
} else if (cmdLineParser.hasHelpOption()) {
QMessageBox::information(nullptr, QObject::tr("Help"), cmdLineParser.helpText());
QMessageBox::information(nullptr, QObject::tr("Help"), cmdLineParser.getHelpText());
return app.exec();
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment