Skip to content

Commit

Permalink
Merge pull request #371 from qtumproject/time/fix_win64_wallet
Browse files Browse the repository at this point in the history
Fix for Qt Wallet crash in Win64
  • Loading branch information
Earlz committed Oct 3, 2017
2 parents 3317560 + 2da4438 commit 2a373e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/qt/tabbarinfo.cpp
@@ -1,15 +1,12 @@
#include "tabbarinfo.h"
#include <QApplication>

TabBarInfo::TabBarInfo(QStackedWidget *parent) :
QObject(parent),
m_current(0),
m_stack(parent),
m_tabBar(0),
m_attached(false)
{
setObjectName("appTabBarInfo");
}
{}

bool TabBarInfo::addTab(int index, const QString &name)
{
Expand Down
3 changes: 2 additions & 1 deletion src/qt/walletframe.cpp
Expand Up @@ -6,6 +6,7 @@

#include "bitcoingui.h"
#include "walletview.h"
#include "tabbarinfo.h"

#include <cstdio>

Expand Down Expand Up @@ -246,7 +247,7 @@ void WalletFrame::pageChanged(int index)
if(walletView->count() > index)
{
QWidget* currentPage = walletView->widget(index);
QObject* info = currentPage->findChild<QObject *>("appTabBarInfo");
QObject* info = currentPage->findChild<TabBarInfo *>("");
gui->setTabBarInfo(info);
}
}
Expand Down

0 comments on commit 2a373e1

Please sign in to comment.