Skip to content

Commit e0f12ea

Browse files
committed
Remove hack for info tab
1 parent 568221a commit e0f12ea

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

redis-desktop-manager/source/widgets/MainTabsWidget.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ MainTabsWidget::MainTabsWidget(QWidget * parent)
1010

1111
int MainTabsWidget::addTab(QWidget*w, const QIcon&i, const QString &label)
1212
{
13-
#ifndef Q_OS_DARWIN
14-
//hide close button for first tab
15-
// on Mac Os this code crash application
16-
if (count() == 0) {
17-
int currentIndex = QTabWidget::addTab(w, i, label);
18-
tabBar()->tabButton(0, QTabBar::RightSide)->setFixedWidth(0);
19-
return currentIndex;
20-
}
21-
#endif
22-
2313
return QTabWidget::addTab(w, i, label);
2414
}
2515

0 commit comments

Comments
 (0)