Skip to content

Commit

Permalink
修复文件夹比较时空行导致不对称的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SunnyYuer committed Sep 11, 2019
1 parent 43bf830 commit eda8e03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions folderdiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,14 @@ void FolderDiff::on_btndiff_clicked()
}
while(addline > 0)
{
new QTreeWidgetItem(ui->treeWidget1, QStringList(""));
QTreeWidgetItem *item = new QTreeWidgetItem(ui->treeWidget1, QStringList(""));
setItemIcon(item, filetype);
addline--;
}
while(delline > 0)
{
new QTreeWidgetItem(ui->treeWidget2, QStringList(""));
QTreeWidgetItem *item = new QTreeWidgetItem(ui->treeWidget2, QStringList(""));
setItemIcon(item, filetype);
delline--;
}
if(j == it.value() && j != filelist2.length())
Expand Down
2 changes: 1 addition & 1 deletion mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private slots:
private:
Ui::MainWindow *ui;
int tabnum = 1;
QString version = "0.8";
QString version = "0.8.1";
QString author = "Yuer";
};

Expand Down

0 comments on commit eda8e03

Please sign in to comment.