From 2da4438f52932e7861407b2ace29875fb6933094 Mon Sep 17 00:00:00 2001 From: Time Markov Date: Tue, 3 Oct 2017 04:44:00 -0700 Subject: [PATCH] Fix for Qt Wallet crash in Win64. --- src/qt/tabbarinfo.cpp | 5 +---- src/qt/walletframe.cpp | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/qt/tabbarinfo.cpp b/src/qt/tabbarinfo.cpp index 94128cc0c6..a8bdf2f47f 100644 --- a/src/qt/tabbarinfo.cpp +++ b/src/qt/tabbarinfo.cpp @@ -1,5 +1,4 @@ #include "tabbarinfo.h" -#include TabBarInfo::TabBarInfo(QStackedWidget *parent) : QObject(parent), @@ -7,9 +6,7 @@ TabBarInfo::TabBarInfo(QStackedWidget *parent) : m_stack(parent), m_tabBar(0), m_attached(false) -{ - setObjectName("appTabBarInfo"); -} +{} bool TabBarInfo::addTab(int index, const QString &name) { diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp index 55aea27eee..f00b79edce 100644 --- a/src/qt/walletframe.cpp +++ b/src/qt/walletframe.cpp @@ -6,6 +6,7 @@ #include "bitcoingui.h" #include "walletview.h" +#include "tabbarinfo.h" #include @@ -246,7 +247,7 @@ void WalletFrame::pageChanged(int index) if(walletView->count() > index) { QWidget* currentPage = walletView->widget(index); - QObject* info = currentPage->findChild("appTabBarInfo"); + QObject* info = currentPage->findChild(""); gui->setTabBarInfo(info); } }