Index: vtkKWFileBrowserDialog.cxx
===================================================================
--- vtkKWFileBrowserDialog.cxx	(revision 94)
+++ vtkKWFileBrowserDialog.cxx	(working copy)
@@ -563,10 +563,9 @@
 
     if (this->FileTypesBox->GetNumberOfValues() > 0)
       {
-      this->FileTypesBox->SetValue(
-        this->FileTypesBox->GetValueFromIndex(0));
-      this->FileTypeChangedCallback(
-        this->FileTypesBox->GetValueFromIndex(0));
+      std::string val(this->FileTypesBox->GetValueFromIndex(0));
+      this->FileTypesBox->SetValue(val.c_str());
+      this->FileTypeChangedCallback(val.c_str());
       }
 
     if (this->InitialFileName && *this->InitialFileName)
@@ -671,10 +670,9 @@
     this->PopulateFileTypes();
     if (this->FileTypesBox->GetNumberOfValues() > 0)
       {
-      this->FileTypesBox->SetValue(
-        this->FileTypesBox->GetValueFromIndex(0));
-      this->FileTypeChangedCallback(
-        this->FileTypesBox->GetValueFromIndex(0));
+      std::string val(this->FileTypesBox->GetValueFromIndex(0));
+      this->FileTypesBox->SetValue(val.c_str());
+      this->FileTypeChangedCallback(val.c_str());
       }
     }
 }
