diff options
Diffstat (limited to 'sd/source/ui/dlg/TemplateScanner.cxx')
-rw-r--r-- | sd/source/ui/dlg/TemplateScanner.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sd/source/ui/dlg/TemplateScanner.cxx b/sd/source/ui/dlg/TemplateScanner.cxx index 617f6401c813..3e43b1923ccd 100644 --- a/sd/source/ui/dlg/TemplateScanner.cxx +++ b/sd/source/ui/dlg/TemplateScanner.cxx @@ -373,12 +373,9 @@ TemplateScanner::State TemplateScanner::ScanFolder (void) // Scan the folder and insert it into the list of template // folders. mpTemplateDirectory = new TemplateDir (sTitle, sTargetDir); - if (mpTemplateDirectory != NULL) - { - mpTemplateDirectory->EnableSorting(mbEntrySortingEnabled); - // Continue with scanning all entries in the folder. - eNextState = INITIALIZE_ENTRY_SCAN; - } + mpTemplateDirectory->EnableSorting(mbEntrySortingEnabled); + // Continue with scanning all entries in the folder. + eNextState = INITIALIZE_ENTRY_SCAN; } } else |