aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-11-10 15:35:34 -0500
committerKen Moore <ken@ixsystems.com>2016-11-10 15:35:34 -0500
commit4a84a25874dc0486d7a4514c84b0c63eac6f3873 (patch)
tree54f2501dc4a72fcfd543d71664740fa4da1dde95
parentMake lumina-config aware of the new "audioplayer" panel plugin. (diff)
downloadlumina-4a84a25874dc0486d7a4514c84b0c63eac6f3873.tar.gz
lumina-4a84a25874dc0486d7a4514c84b0c63eac6f3873.tar.bz2
lumina-4a84a25874dc0486d7a4514c84b0c63eac6f3873.zip
If lumina-textedit is opened without any arguments, automatically open a blank/new file.
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/MainUI.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
index 4a7fbabf..88f7bf00 100644
--- a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
@@ -92,6 +92,9 @@ void MainUI::LoadArguments(QStringList args){ //CLI arguments
if(ui->groupReplace->isVisible()){ ui->line_find->setFocus(); }
else{ currentEditor()->setFocus(); }
}
+ if(ui->tabWidget->count()<1){
+ NewFile();
+ }
}
// =================
bgstack15