diff -ru old/resources/translations/simulide_ru.ts new/resources/translations/simulide_ru.ts
--- old/resources/translations/simulide_ru.ts 2023-02-23 10:53:38.359999000 +0300
+++ new/resources/translations/simulide_ru.ts 2023-02-22 19:12:36.196327137 +0300
@@ -1724,18 +1724,12 @@
Последняя схема
-
-
-Не удалось найти файл:
-
+
+ Не удалось найти файл:
-
- Вы хотите удалить его из недавних файлов?
-
+
+ Вы хотите удалить его из недавних файлов?
diff -ru old/SimulIDE.pro new/SimulIDE.pro
--- old/SimulIDE.pro 2023-02-23 10:53:38.359999000 +0300
+++ new/SimulIDE.pro 2023-02-23 11:03:45.252304486 +0300
@@ -100,8 +100,7 @@
CONFIG += no_qml_debug
CONFIG *= c++11
-REV_NO = $$system( bzr revno )
-DEFINES += REVNO=\\\"$$REV_NO\\\"
+DEFINES += REVNO="1425"
DEFINES += MAINMODULE_EXPORT=
DEFINES += APP_VERSION=\\\"$$VERSION$$RELEASE\\\"
@@ -141,7 +140,7 @@
$(COPY_DIR) ../resources/examples $$TARGET_PREFIX/simulide.app/Contents/MacOs;
}
-runLrelease.commands = lrelease ../resources/translations/*.ts;
+runLrelease.commands = lrelease-qt5 ../resources/translations/*.ts;
QMAKE_EXTRA_TARGETS += runLrelease
QMAKE_EXTRA_TARGETS += copy2dest
PRE_TARGETDEPS += runLrelease
diff -ru old/src/gui/editorwidget/debuggers/inodebugger.cpp new/src/gui/editorwidget/debuggers/inodebugger.cpp
--- old/src/gui/editorwidget/debuggers/inodebugger.cpp 2023-02-23 10:53:38.359999000 +0300
+++ new/src/gui/editorwidget/debuggers/inodebugger.cpp 2023-02-23 11:24:12.939909621 +0300
@@ -20,6 +20,16 @@
#include
#include
+#ifdef Q_OS_UNIX
+/*
+w00zy Thu Feb 23 11:22:40 MSK 2023
+Linux does not encourage writing user data to the /usr directory.
+Perhaps you need to save temporary compiler files in your home directory?
+Possibly QStandardPaths::CacheLocation ?
+*/
+#include
+#endif
+
#include "inodebugger.h"
#include "outpaneltext.h"
#include "mainwindow.h"
@@ -39,7 +49,11 @@
m_version = 0;
m_Ardboard = Uno;
m_ArdboardList << "uno" << "megaADK" << "nano" << "diecimila" << "leonardo" << "custom";
+ #ifndef Q_OS_UNIX
m_buildPath = MainWindow::self()->getFilePath("data/codeeditor/buildIno");
+ #else
+ m_buildPath = QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/codeeditor/buildIno";
+ #endif
}
InoDebugger::~InoDebugger() {}
@@ -134,6 +148,14 @@
QString cCachePath = m_buildPath+"/cache";
QDir dir( m_buildPath );
+
+ #ifdef Q_OS_UNIX
+ if( !QFile::exists( m_buildPath ))
+ {
+ dir.mkpath( m_buildPath );
+ }
+ #endif
+
bool b = dir.cd( "build" );
if( b ) dir.removeRecursively(); // Remove old files
dir.mkpath( cBuildPath ); // Create build folder
diff -ru old/src/gui/editorwidget/editorwidget.cpp new/src/gui/editorwidget/editorwidget.cpp
--- old/src/gui/editorwidget/editorwidget.cpp 2023-02-23 10:53:38.359999000 +0300
+++ new/src/gui/editorwidget/editorwidget.cpp 2023-02-23 11:14:41.284007177 +0300
@@ -627,7 +627,8 @@
for( int i=0; isetStatusTip( tr("Last Circuits") );
+ // fileButton->setStatusTip( tr("Last Circuits") ); // fix me? This not list item? This menu button
+ fileButton->setToolTip( tr("Last Circuits") ); // w00zy possible fix.
fileButton->setMenu( &m_fileMenu );
fileButton->setIcon( QIcon(":/lastfiles.png") );
fileButton->setPopupMode( QToolButton::InstantPopup );