]> git.lyx.org Git - features.git/commitdiff
Actually move the OS2-specific block to make the code more readable too.
authorAngus Leeming <leeming@lyx.org>
Sun, 16 Jan 2005 16:55:26 +0000 (16:55 +0000)
committerAngus Leeming <leeming@lyx.org>
Sun, 16 Jan 2005 16:55:26 +0000 (16:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9483 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/filetools.C

index 72303c6d5f7920eb945f99a6e408d9b7ed48a3d0..e5db9d75d492e3a3ed38275b89283d8bc7136008 100644 (file)
@@ -581,19 +581,16 @@ string const createLyXTmpDir(string const & deflt)
 {
        if (!deflt.empty() && deflt != "/tmp") {
                if (mkdir(deflt, 0777)) {
+#ifdef __EMX__
+                       Path p(user_lyxdir());
+#endif
                        if (IsDirWriteable(deflt)) {
                                // deflt could not be created because it
                                // did exist already, so let's create our own
                                // dir inside deflt.
-#ifdef __EMX__
-                               Path p(user_lyxdir());
-#endif
                                return createTmpDir(deflt, "lyx_tmpdir");
                        } else {
                                // some other error occured.
-#ifdef __EMX__
-                               Path p(user_lyxdir());
-#endif
                                return createTmpDir("/tmp", "lyx_tmpdir");
                        }
                } else