summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrDocument.cpp
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 10:53:18 +0300
commit6468d1790a7091ea16fccd87dfd39462556f71d4 (patch)
tree9c19eb0ef372c3f45615161e2a5fc5f33713ce3a /kpresenter/KPrDocument.cpp
parent5daf2fbc51682f117572fe1f6a78522177dedef5 (diff)
downloadkoffice-6468d1790a7091ea16fccd87dfd39462556f71d4.tar.gz
koffice-6468d1790a7091ea16fccd87dfd39462556f71d4.zip
KPresenter: look in DATADIR/kpresenter for template
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>
Diffstat (limited to 'kpresenter/KPrDocument.cpp')
-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;