File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -215,15 +215,15 @@ endif()
215215add_definitions (
216216 -DVERSION_MAJOR=0
217217 -DVERSION_MINOR=38
218- -DVERSION_REVISION=4
218+ -DVERSION_REVISION=5
219219 -DVERSION_SUFFIX= "main"
220220 -DCOW_BUILD_TAG= "${COW_BUILD_TAG} "
221221 -DCOW_BUILD_NAME= "${COW_BUILD_NAME} "
222222 -DUPDATE_FILE= "${UPDATE_FILE} "
223223)
224224
225- set (COW_ANDROID_VERSION_NAME "0.38.4 -main" )
226- set (COW_ANDROID_VERSION_CODE "65 " )
225+ set (COW_ANDROID_VERSION_NAME "0.38.5 -main" )
226+ set (COW_ANDROID_VERSION_CODE "66 " )
227227
228228###################################################################################
229229# Set up some compiler and linking options
Original file line number Diff line number Diff line change @@ -246,9 +246,19 @@ void EditorMenue::cleanTemp(qint32 step)
246246 QDir dir = m_tempDir.path ();
247247 if (step < 0 )
248248 {
249- m_tempCounter = 0 ;
250- dir.removeRecursively ();
251249 dir.mkpath (" ." );
250+ for (qint32 i = 0 ; i < std::numeric_limits<qint32>::max (); i++)
251+ {
252+ QFile file (m_tempDir.path () + " /temp" + QString::number (i) + " .tmp" );
253+ if (file.exists ())
254+ {
255+ file.remove ();
256+ }
257+ else
258+ {
259+ break ;
260+ }
261+ }
252262 }
253263 else
254264 {
@@ -1743,6 +1753,7 @@ void EditorMenue::loadMap(QString filename)
17431753 CONSOLE_PRINT (" EditorMenue::loadMap " + filename, GameConsole::eDEBUG);
17441754 if (filename.endsWith (" .map" ))
17451755 {
1756+ filename = filename.replace (" //" , " /" );
17461757 QFile file (filename);
17471758 if (file.exists ())
17481759 {
Original file line number Diff line number Diff line change @@ -123,6 +123,10 @@ void FileDialog::onFileSelected()
123123 {
124124 fileStart = folder;
125125 }
126+ else
127+ {
128+ fileStart += folder;
129+ }
126130 if (!fileStart.isEmpty ())
127131 {
128132 fileStart += " /" ;
You can’t perform that action at this time.
0 commit comments