Skip to content

Commit

Permalink
Fixed validator to validate hashes with capital letters
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaleb Klein authored and Kaleb Klein committed Feb 7, 2016
1 parent 22b8719 commit 265339a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile.win
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ clean:
if exist updater_src\release rmdir /S /Q updater_src\release
if exist updater_src\Makefile del updater_src\Makefile
if exist updater_src\Makefile.Debug del updater_src\Makefile.Debug
if exist updater_src\Makefile.Release del updater_src\Makefile.Release
if exist updater_src\Makefile.Release del updater_src\Makefile.Release
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void MainWindow::onValidateButtonClicked()

void MainWindow::onCalculationPerformed(QString hash)
{
if(ui->leHash->text() == hash)
if(ui->leHash->text().toLower() == hash)
{
this->alert("Success", "The file checksum is valid!");
ui->statusBar->showMessage("Validation successful!");
Expand Down
12 changes: 6 additions & 6 deletions src/refs.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#ifndef REFS_H
#define REFS_H

#define VER_FILEVERSION 2,3,5,0
#define VER_FILEVERSION_STR "2.3.5\0"
#define VER_FILEVERSION 2,3,6,0
#define VER_FILEVERSION_STR "2.3.6\0"

#define VER_PRODUCTVERSION 2,3,5,0
#define VER_PRODUCTVERSION_STR "2.3.5\0"
#define VER_PRODUCTVERSION 2,3,6,0
#define VER_PRODUCTVERSION_STR "2.3.6\0"

#define VER_COMPANYNAME_STR "Kaleb Klein"
#define VER_FILEDESCRIPTION_STR "File Checksum Validator"
Expand All @@ -18,8 +18,8 @@

#define VER_COMPANYDOMAIN_STR "kalebklein.com"

#define VERSION_CODE 24
#define VERSION_NAME "2.3.5"
#define VERSION_CODE 25
#define VERSION_NAME "2.3.6"
#define VERSION_GEN "2.1.2"

#endif // REFS_H
Expand Down

0 comments on commit 265339a

Please sign in to comment.