diff --git a/src/plugins/qt4projectmanager/wizards/mobilelibraryparameters.cpp b/src/plugins/qt4projectmanager/wizards/mobilelibraryparameters.cpp
index d38b9893bc9e89788b073099cbd69f7f7e5fbb63..53fcd06411f7814f4565ce7cff1b2d6335f04e36 100644
--- a/src/plugins/qt4projectmanager/wizards/mobilelibraryparameters.cpp
+++ b/src/plugins/qt4projectmanager/wizards/mobilelibraryparameters.cpp
@@ -103,12 +103,13 @@ void MobileLibraryParameters::writeSymbianProFile(QTextStream &str) const
            "    addFiles.sources = " + fileName + ".dll\n"
            "    addFiles.path = !:/sys/bin\n"
            "    DEPLOYMENT += addFiles\n"
-           "}";
+           "}\n";
 }
 
 void MobileLibraryParameters::writeMaemoProFile(QTextStream &str) const
 {
-    str << " else:unix {\n"
+    str << "\n"
+           "unix:!symbian {\n"
            "    maemo5 {\n"
            "        target.path = /opt/usr/lib\n"
            "    } else {\n"