From 1914eb08cf2cc9f9ed135ada27cf9c6751fa7354 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 2 Feb 2016 08:41:10 -0500 Subject: Add a few more built-in Qt paths to the OS-detect file, and commit a bit more work on the lumina-terminal app. --- desktop-utilities/lumina-terminal/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'desktop-utilities/lumina-terminal/main.cpp') diff --git a/desktop-utilities/lumina-terminal/main.cpp b/desktop-utilities/lumina-terminal/main.cpp index c117b8fb..48da4556 100644 --- a/desktop-utilities/lumina-terminal/main.cpp +++ b/desktop-utilities/lumina-terminal/main.cpp @@ -6,6 +6,7 @@ //=========================================== #include #include +#include #include #include @@ -14,6 +15,10 @@ #include "TrayIcon.h" int main(int argc, char *argv[]) { + if(QSerialPortInfo::availablePorts().isEmpty()){ + qDebug() << "No Serial Ports available!!!"; + return 1; + } LTHEME::LoadCustomEnvSettings(); LSingleApplication a(argc, argv, "lumina-terminal"); if( !a.isPrimaryProcess() ){ return 0; } //poked the current process instead -- cgit