mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
fixed version in crash reporting for betas, fixed global app event filter install
This commit is contained in:
@@ -435,7 +435,7 @@ void Window::init() {
|
|||||||
psInitFrameless();
|
psInitFrameless();
|
||||||
setWindowIcon(wndIcon);
|
setWindowIcon(wndIcon);
|
||||||
|
|
||||||
App::app()->installEventFilter(this);
|
Application::instance()->installEventFilter(this);
|
||||||
connect(windowHandle(), SIGNAL(windowStateChanged(Qt::WindowState)), this, SLOT(stateChanged(Qt::WindowState)));
|
connect(windowHandle(), SIGNAL(windowStateChanged(Qt::WindowState)), this, SLOT(stateChanged(Qt::WindowState)));
|
||||||
connect(windowHandle(), SIGNAL(activeChanged()), this, SLOT(checkHistoryActivation()), Qt::QueuedConnection);
|
connect(windowHandle(), SIGNAL(activeChanged()), this, SLOT(checkHistoryActivation()), Qt::QueuedConnection);
|
||||||
|
|
||||||
@@ -2156,7 +2156,7 @@ QString LastCrashedWindow::getReportField(const QLatin1String &name, const QLati
|
|||||||
|
|
||||||
if (name == qstr("version")) {
|
if (name == qstr("version")) {
|
||||||
if (data.endsWith(qstr(" beta"))) {
|
if (data.endsWith(qstr(" beta"))) {
|
||||||
data = QString::number(-data.replace(QRegularExpression(qsl("[^\\d]")), "").mid(0, data.size() - 5).toLongLong());
|
data = QString::number(-data.replace(QRegularExpression(qsl("[^\\d]")), "").toLongLong());
|
||||||
} else {
|
} else {
|
||||||
data = QString::number(data.replace(QRegularExpression(qsl("[^\\d]")), "").toLongLong());
|
data = QString::number(data.replace(QRegularExpression(qsl("[^\\d]")), "").toLongLong());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user