summaryrefslogtreecommitdiffstats
path: root/kpdf/shell/main.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2025-04-06 01:24:17 +0300
committerMavridis Philippe <mavridisf@gmail.com>2025-04-06 15:53:09 +0300
commite4ea46eff2e90f1096937529e432388b63fa7d02 (patch)
tree541e8642109293e169fda0766966781863bde8f6 /kpdf/shell/main.cpp
parent2358a2e7b917cbff583bb41dcd3ae86c50def26e (diff)
downloadtdegraphics-e4ea46eff2e90f1096937529e432388b63fa7d02.tar.gz
tdegraphics-e4ea46eff2e90f1096937529e432388b63fa7d02.zip
KPDF Shell: add tabs
This resolves issue #116. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit fe0f8cd399c699103839eeba59df93feed3ca9ef)
Diffstat (limited to 'kpdf/shell/main.cpp')
-rw-r--r--kpdf/shell/main.cpp15
1 files changed, 4 insertions, 11 deletions
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();
}