Skip to content

Commit a9a6a8a

Browse files
committed
1 parent c9695a9 commit a9a6a8a

3 files changed

Lines changed: 20 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,15 +215,15 @@ endif()
215215
add_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

menue/editormenue.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff 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
{

objects/dialogs/filedialog.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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 += "/";

0 commit comments

Comments
 (0)