From bfc96a86301b0cf6df0d2b9a39d3f020bd85caa7 Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Tue, 16 Sep 2008 07:29:05 +0000 Subject: [PATCH] If path is empty use documentpath svn path=/trunk/KDE/kdebase/workspace/; revision=861450 --- effects/videorecord_config.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/effects/videorecord_config.cpp b/effects/videorecord_config.cpp index afdfb6eaac..0cf291a18c 100644 --- a/effects/videorecord_config.cpp +++ b/effects/videorecord_config.cpp @@ -101,7 +101,10 @@ void VideoRecordEffectConfig::save() KConfigGroup conf = EffectsHandler::effectConfig("VideoRecord"); - conf.writeEntry("videopath", saveVideo->url().path()); + if( saveVideo->url().isEmpty() ) + conf.writeEntry("videopath", KGlobalSettings::documentPath()); + else + conf.writeEntry("videopath", saveVideo->url().path()); conf.sync();