From e4ea46eff2e90f1096937529e432388b63fa7d02 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sun, 6 Apr 2025 01:24:17 +0300 Subject: KPDF Shell: add tabs This resolves issue #116. Signed-off-by: Mavridis Philippe (cherry picked from commit fe0f8cd399c699103839eeba59df93feed3ca9ef) --- kpdf/shell/main.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'kpdf/shell/main.cpp') diff --git a/kpdf/shell/main.cpp b/kpdf/shell/main.cpp index 9b8d0a18..dfe6078c 100644 --- a/kpdf/shell/main.cpp +++ b/kpdf/shell/main.cpp @@ -60,19 +60,12 @@ int main(int argc, char** argv) // no session.. just start up normally TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs(); - if (args->count() == 0) + KPDF::Shell* widget = new KPDF::Shell; + for (int i = 0; i < args->count(); ++i) { - KPDF::Shell* widget = new KPDF::Shell; - widget->show(); - } - else - { - for (int i = 0; i < args->count(); ++i) - { - KPDF::Shell* widget = new KPDF::Shell(args->url(i)); - widget->show(); - } + widget->openURL(args->url(i)); } + widget->show(); args->clear(); } -- cgit v1.2.3