Skip to content

Commit

Permalink
#108 Fix no commits shown when new repo
Browse files Browse the repository at this point in the history
Transferring the reponsability of evaluating the data to GitRepoLoader.
  • Loading branch information
francescmm committed Jul 8, 2020
1 parent 183b400 commit 76e3193
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/git/GitRequestorProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@ void GitRequestorProcess::onFinished(int, QProcess::ExitStatus)
{
bool ok = mTempFile && (mTempFile->isOpen() || (mTempFile->exists() && mTempFile->open()));

if (ok)
{
const auto ba = mTempFile->readAll();

if (ba.size() != 0 && !mCanceling)
emit procDataReady(ba);
}
if (ok && !mCanceling)
emit procDataReady(mTempFile->readAll());

deleteLater();
}

0 comments on commit 76e3193

Please sign in to comment.