Refactoring.

This commit is contained in:
Roman Telezhynskyi 2021-05-21 21:33:17 +03:00
parent 06d19ace25
commit a9711316ec
2 changed files with 5 additions and 8 deletions

View file

@ -1077,7 +1077,6 @@ void VPMainWindow::CreateWindowMenu(QMenu *menu)
} }
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VPMainWindow::on_actionNew_triggered() void VPMainWindow::on_actionNew_triggered()
{ {

View file

@ -153,16 +153,14 @@ QString VAbstractApplication::translationsPath(const QString &locale) const
{ {
return dir.absolutePath(); return dir.absolutePath();
} }
else
{
#if defined(APPIMAGE) && defined(Q_OS_LINUX) #if defined(APPIMAGE) && defined(Q_OS_LINUX)
/* Fix path to trasnaltions when run inside AppImage. */ /* Fix path to trasnaltions when run inside AppImage. */
return AppImageRoot() + PKGDATADIR + trPath; return AppImageRoot() + PKGDATADIR + trPath;
#else #else
return PKGDATADIR + trPath; return PKGDATADIR + trPath;
#endif // defined(APPIMAGE) && defined(Q_OS_LINUX) #endif // defined(APPIMAGE) && defined(Q_OS_LINUX)
} #endif // Unix
#endif
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------