diff options
author | Ken Moore <moorekou@gmail.com> | 2016-02-02 08:41:10 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-02-02 08:41:10 -0500 |
commit | 1914eb08cf2cc9f9ed135ada27cf9c6751fa7354 (patch) | |
tree | 1d960752a5061055da2510b72c2c498e7b55b924 /desktop-utilities/lumina-terminal/main.cpp | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
download | lumina-1914eb08cf2cc9f9ed135ada27cf9c6751fa7354.tar.gz lumina-1914eb08cf2cc9f9ed135ada27cf9c6751fa7354.tar.bz2 lumina-1914eb08cf2cc9f9ed135ada27cf9c6751fa7354.zip |
Add a few more built-in Qt paths to the OS-detect file, and commit a bit more work on the lumina-terminal app.
Diffstat (limited to 'desktop-utilities/lumina-terminal/main.cpp')
-rw-r--r-- | desktop-utilities/lumina-terminal/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 <QSystemTrayIcon> #include <QDebug> +#include <QSerialPortInfo> #include <LuminaSingleApplication.h> #include <LuminaThemes.h> @@ -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 |