Skip to content

Commit

Permalink
Fix captions and close button of session tab bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
zwpwjwtz committed Jun 10, 2018
1 parent fd1352e commit 7c726c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ MainWindow::MainWindow(QWidget *parent) :
groupSendOption = nullptr;
timer.setInterval(1000);
manualExit = false;
lastHoveredTab = 0;
lastHoveredTab = -1;
conversationLoginState = 0;
notificationState = 0;
}
Expand Down Expand Up @@ -696,9 +696,12 @@ void MainWindow::addTab(QString ID)
this,
SLOT(onBrowserLinkClicked(const QUrl&)));

QString tabText = friendInfoList.value(ID).remarks;
if (tabText.isEmpty())
tabText = ID;
ui->tabSession->addTab(newBrowser,
QIcon(getStateImagePath(ID)),
ID);
tabText);
ui->frameTextGroup->layout()->addWidget(newEditor);
ui->frameMsg->show();

Expand Down

0 comments on commit 7c726c7

Please sign in to comment.