Commit e7d0ca6a authored by Philipp Erhardt's avatar Philipp Erhardt
Browse files

Hopefully fix occasional X11 crash when using hlwm

Thanks to Thorsten for finding a solution
parent c0858d7d
......@@ -79,6 +79,7 @@ int main(int argc, char *argv[]) {
// else no argument given, "open" empty string
Viewer katarakt(file);
katarakt.show();
if (!katarakt.is_valid()) {
return 1;
}
......
......@@ -132,7 +132,6 @@ Viewer::Viewer(const QString &file, QWidget *parent) :
setWindowTitle(QString::fromUtf8("%1 \u2014 katarakt").arg(info.fileName()));
setMinimumSize(50, 50);
resize(500, 500);
show();
search_bar->hide();
info_password.setFocus(Qt::OtherFocusReason); // only works if shown
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment