ui: fixed Linux issues

* no outline style for push buttons
* show error when not using Sourcetrail.sh script in console instead of message box, which won't load
This commit is contained in:
Eberhard Graether
2018-01-12 15:12:14 +01:00
parent 3edb759f0f
commit 05ff92fdea
3 changed files with 11 additions and 8 deletions
+7
View File
@@ -187,6 +187,13 @@ QCoreApplication* createApplication(int &argc, char *argv[], bool noGUI = false)
int main(int argc, char *argv[])
{
#ifdef __linux__
if (std::getenv("SOURCETRAIL_VIA_SCRIPT") == nullptr)
{
std::cout << "ERROR: Please run Sourcetrail via the Sourcetrail.sh script!" << std::endl;
}
#endif
QApplication::setApplicationName("Sourcetrail");
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);