From 4a84a25874dc0486d7a4514c84b0c63eac6f3873 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 10 Nov 2016 15:35:34 -0500 Subject: If lumina-textedit is opened without any arguments, automatically open a blank/new file. --- src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src-qt5/desktop-utils/lumina-textedit/MainUI.cpp') 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(); + } } // ================= -- cgit