Skip to content

Commit

Permalink
Fixed version check bug
Browse files Browse the repository at this point in the history
"Fixed" hotkey bug (needs new Qt >=5.11.2)
  • Loading branch information
SverrirValgeirsson committed Sep 23, 2018
1 parent f80cd39 commit 5993aa6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
New in 2.16
===========
* Fixed bug with version checking that shows the wrong message when there is a new version
* Qt 5.11.2 - Hotkey issues fixed
* Fixed bug where the application would forget to monitor the todo.txt file for changes


New in 2.15
===========

Expand Down
6 changes: 3 additions & 3 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ void MainWindow::fileModified(const QString &str){
saveTableSelection();
model->refresh();
resetTableSelection();
setFileWatch();
}

void MainWindow::clearFileWatch(){
Expand Down Expand Up @@ -320,7 +321,6 @@ void MainWindow::on_actionSettings_triggered()
d.show();
d.exec();
if(d.refresh){
clearFileWatch();
delete model;
model = new TodoTableModel(this);
proxyModel->setSourceModel(model);
Expand Down Expand Up @@ -550,9 +550,9 @@ void MainWindow::requestReceived(QNetworkReply* reply){
qDebug()<<"Checked version - Latest: "<<latest_version<<" this version "<<this_version<<endl;
if(latest_version>this_version || forced_check_version){
if(latest_version >= this_version){
ui->lbl_newVersion->hide();
} else {
ui->lbl_latestVersion->hide();
} else {
ui->lbl_newVersion->hide();
}
ui->txtLatestVersion->setText("(v"+QString::number(latest_version,'f',2)+")");
ui->newVersionView->show();
Expand Down

0 comments on commit 5993aa6

Please sign in to comment.