diff options
author | Ken Moore <ken@ixsystems.com> | 2017-03-14 07:05:13 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-03-14 07:05:13 -0400 |
commit | 89ba7785e706fb6a43e96d7c2b34203767d27097 (patch) | |
tree | 73eb52dc01811adf00edf375283c44e325d6debf /src-qt5/desktop-utils/lumina-pdf/main.cpp | |
parent | Add a new desktop application: lumina-pdf (diff) | |
download | lumina-89ba7785e706fb6a43e96d7c2b34203767d27097.tar.gz lumina-89ba7785e706fb6a43e96d7c2b34203767d27097.tar.bz2 lumina-89ba7785e706fb6a43e96d7c2b34203767d27097.zip |
Update the new lumina-pdf to work as a QMainWindow with a QPrintPreviewWidget embedded within it (instead of a QPrintPrevewDialog for everything).
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/main.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/main.cpp b/src-qt5/desktop-utils/lumina-pdf/main.cpp index ad0797d7..f6bb9839 100644 --- a/src-qt5/desktop-utils/lumina-pdf/main.cpp +++ b/src-qt5/desktop-utils/lumina-pdf/main.cpp @@ -21,10 +21,10 @@ int main(int argc, char ** argv) path = LUtils::PathToAbsolute( argv[i] ); if(QFile::exists(path)){ break; } //already found a valid file } -if(path.isEmpty()){ return 1; } + MainUI w; //QObject::connect(&theme, SIGNAL(updateIcons()), &w, SLOT(UpdateIcons()) ); - w.loadFile(path); + if(!path.isEmpty()){ w.loadFile(path); } w.show(); int retCode = a.exec(); return retCode; |