Skip to content

Commit

Permalink
Merge pull request #49 from mateusz-fejcher/47-Button-Scan-again-do-n…
Browse files Browse the repository at this point in the history
…ot-work

47 resetting captured after clicking scan again button added
  • Loading branch information
pa-sowa authored Jul 8, 2024
2 parents 4a317d6 + bf0ca71 commit 58132b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/SBarcodeDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,7 @@ QString SBarcodeDecoder::captured() const

void SBarcodeDecoder::setCaptured(const QString &captured)
{
if (m_captured == captured) {
return;
}

m_captured = captured;

emit capturedChanged(m_captured);
}

Expand Down
4 changes: 0 additions & 4 deletions src/SBarcodeScanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@ QCamera *SBarcodeScanner::makeDefaultCamera()

void SBarcodeScanner::setCaptured(const QString& captured)
{
if (m_captured == captured) {
return;
}

m_captured = captured;
emit capturedChanged(m_captured);
}
Expand Down

0 comments on commit 58132b8

Please sign in to comment.