Switch to unified view

a/src/qtgui/preview_w.cpp b/src/qtgui/preview_w.cpp
...
...
830
830
831
        // We want a real file, so if this comes from data or we have
831
        // We want a real file, so if this comes from data or we have
832
        // an ipath, create it.
832
        // an ipath, create it.
833
        if (fn.empty() || !idoc.ipath.empty()) {
833
        if (fn.empty() || !idoc.ipath.empty()) {
834
            TempFile temp = lthr.tmpimg;
834
            TempFile temp = lthr.tmpimg;
835
            if (temp) {
835
            if (temp.ok()) {
836
                LOGDEB1("Preview: load: got temp file from internfile\n");
836
                LOGDEB1("Preview: load: got temp file from internfile\n");
837
            } else if (!FileInterner::idocToFile(temp, string(), 
837
            } else if (!FileInterner::idocToFile(temp, string(), 
838
                                                 theconfig, idoc)) {
838
                                                 theconfig, idoc)) {
839
                temp.reset(); // just in case.
839
                temp = TempFile(); // just in case.
840
            }
840
            }
841
            if (temp) {
841
            if (temp.ok()) {
842
                rememberTempFile(temp);
842
                rememberTempFile(temp);
843
                fn = temp->filename();
843
                fn = temp.filename();
844
                editor->m_tmpfilename = fn;
844
                editor->m_tmpfilename = fn;
845
            } else {
845
            } else {
846
                editor->m_tmpfilename.erase();
846
                editor->m_tmpfilename.erase();
847
                fn.erase();
847
                fn.erase();
848
            }
848
            }