aboutsummaryrefslogtreecommitdiff
path: root/desktop-utilities
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-04-21 09:00:29 -0400
committerKen Moore <moorekou@gmail.com>2016-04-21 09:00:29 -0400
commit1c8d95f2d639f8a9d4392aaddbd59fefb2cb3639 (patch)
tree39add2463fb46e7437be64e8840bd358181f6969 /desktop-utilities
parentSet the width of the "tab" character to be == 8 spaces (UNIX standard) (diff)
downloadlumina-1c8d95f2d639f8a9d4392aaddbd59fefb2cb3639.tar.gz
lumina-1c8d95f2d639f8a9d4392aaddbd59fefb2cb3639.tar.bz2
lumina-1c8d95f2d639f8a9d4392aaddbd59fefb2cb3639.zip
Also make sure the current tab/filename is reflected in the window title for the editor.
Diffstat (limited to 'desktop-utilities')
-rw-r--r--desktop-utilities/lumina-textedit/MainUI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-utilities/lumina-textedit/MainUI.cpp b/desktop-utilities/lumina-textedit/MainUI.cpp
index 4815e281..199dba1d 100644
--- a/desktop-utilities/lumina-textedit/MainUI.cpp
+++ b/desktop-utilities/lumina-textedit/MainUI.cpp
@@ -221,6 +221,7 @@ void MainUI::updateTab(QString file){
ui->tabWidget->setTabText(index,(changes ? "*" : "") + file.section("/",-1));
ui->actionSave_File->setEnabled(changes);
ui->actionSave_File_As->setEnabled(changes);
+ this->setWindowTitle( ui->tabWidget->tabText( ui->tabWidget->currentIndex() ) );
}
void MainUI::tabChanged(){
@@ -230,6 +231,7 @@ void MainUI::tabChanged(){
bool changes = cur->hasChange();
ui->actionSave_File->setEnabled(changes);
ui->actionSave_File_As->setEnabled(changes);
+ this->setWindowTitle( ui->tabWidget->tabText( ui->tabWidget->currentIndex() ) );
}
void MainUI::tabClosed(int tab){
bgstack15