summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2022-04-24 10:53:18 +0300
committerMavridis Philippe <mavridisf@gmail.com>2022-04-24 12:14:59 +0300
commitddd24f0f313f564ade51e7b6934d77fb36f5745e (patch)
treec5cac6794544d5e0ba7a30edfaa8a81b72ddecc8
parentb8c35f29dbb685428b5e94189e25d7a068e4fbe6 (diff)
downloadkoffice-r14.0.12.tar.gz
koffice-r14.0.12.zip
KPresenter: look in DATADIR/kpresenter for templater14.0.12
This is because when the app is launched as part of KOShell, the appname is koshell instead of kpresenter, making usage of APPDATADIR fail. This resolves issue #21. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
-rw-r--r--kpresenter/KPrDocument.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kpresenter/KPrDocument.cpp b/kpresenter/KPrDocument.cpp
index c914b094..bcab0f2e 100644
--- a/kpresenter/KPrDocument.cpp
+++ b/kpresenter/KPrDocument.cpp
@@ -3601,7 +3601,7 @@ TQString KPrDocument::templateFileName( bool chooseTemplate, const TQString &the
TQString fileName;
if ( !chooseTemplate ) {
if ( theFile.isEmpty() )
- fileName = locateLocal( "appdata", "default.kpr" );
+ fileName = locateLocal( "data", "kpresenter/default.kpr" );
else
fileName = theFile;
} else {
@@ -3617,7 +3617,7 @@ TQString KPrDocument::templateFileName( bool chooseTemplate, const TQString &the
KURL src, dest;
src.setPath( fileName );
- dest.setPath( locateLocal( "appdata", "default.kpr" ) );
+ dest.setPath( locateLocal( "data", "kpresenter/default.kpr" ) );
kdDebug(33001) << "Copying template (in KPrDocument::templateFileName)" << endl
<< " from: " << src.prettyURL() << endl
<< " to: " << dest.prettyURL() << endl;