Refactoring.
This commit is contained in:
parent
06d19ace25
commit
a9711316ec
|
@ -1077,7 +1077,6 @@ void VPMainWindow::CreateWindowMenu(QMenu *menu)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VPMainWindow::on_actionNew_triggered()
|
void VPMainWindow::on_actionNew_triggered()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user