repaint tabs when text changes

This commit is contained in:
fourtf 2018-04-06 01:57:32 +02:00
parent 3adec1ae89
commit 68227fa576

View file

@ -103,9 +103,13 @@ QString NotebookTab::getTitle() const
void NotebookTab::setTitle(const QString &newTitle)
{
this->title = newTitle.toStdString();
auto stdTitle = newTitle.toStdString();
this->updateSize();
if (this->title != stdTitle) {
this->title = stdTitle;
this->updateSize();
this->update();
}
}
bool NotebookTab::isSelected() const