--- mainwindow-orig.rb	2007-09-20 14:48:11.000000000 +0000
+++ mainwindow.rb	2007-09-20 14:48:27.000000000 +0000
@@ -117,9 +117,9 @@
 	    fileName = Qt::FileDialog.getSaveFileName(self,
 	                        tr("Choose a file name"), ".",
 	                        tr("HTML (*.html *.htm)"))
-	    if fileName.empty?
+	    if fileName.nil?
 	        return
-		end
+            end
 	    file = Qt::File.new(fileName)
 	    if !file.open(Qt::File::WriteOnly | Qt::File::Text)
 	        Qt::MessageBox.warning(self, tr("Dock Widgets"),
