删除新建成功时不提示。
This commit is contained in:
@@ -15,6 +15,10 @@ variables:
|
||||
RELEASENAME: "$PROJECT_NAME-v$PROJECT_VERSION"
|
||||
DESCRIPTION: |
|
||||
|
||||
# 优化
|
||||
|
||||
- 删除新建文件(夹)成功时不提示。
|
||||
|
||||
# 功能新增
|
||||
|
||||
- 对照传输支持按照类型传输。
|
||||
|
||||
@@ -569,7 +569,7 @@ void FileManager::OperNewFolder()
|
||||
if (!isRemote_) {
|
||||
QString ret = Util::NewDir(folder);
|
||||
if (ret.isEmpty()) {
|
||||
QMessageBox::information(this, tr("提示"), tr("创建%1成功").arg(folder));
|
||||
//QMessageBox::information(this, tr("提示"), tr("创建%1成功").arg(folder));
|
||||
DirFileInfo nf;
|
||||
nf.size = 0;
|
||||
nf.type = Dir;
|
||||
@@ -609,7 +609,7 @@ void FileManager::OperNewFolder()
|
||||
if (msg.msg == STR_NONE || !msg.msg.isEmpty()) {
|
||||
QMessageBox::information(this, tr("提示"), QString(tr("新建失败=>%1")).arg(msg.msg));
|
||||
} else {
|
||||
QMessageBox::information(this, tr("提示"), QString(tr("新建%1成功。")).arg(folder));
|
||||
//QMessageBox::information(this, tr("提示"), QString(tr("新建%1成功。")).arg(folder));
|
||||
DirFileInfo nf;
|
||||
nf.size = 0;
|
||||
nf.type = Dir;
|
||||
@@ -642,7 +642,7 @@ void FileManager::OperDelete()
|
||||
if (!isRemote_) {
|
||||
QString ret = Util::Delete(name);
|
||||
if (ret.isEmpty()) {
|
||||
QMessageBox::information(this, tr("提示"), tr("删除成功"));
|
||||
//QMessageBox::information(this, tr("提示"), tr("删除成功"));
|
||||
int row = datas[0]->row();
|
||||
ui->tableWidget->removeRow(row);
|
||||
} else {
|
||||
@@ -676,7 +676,7 @@ void FileManager::OperDelete()
|
||||
if (msg.msg == STR_NONE || !msg.msg.isEmpty()) {
|
||||
QMessageBox::information(this, tr("提示"), QString(tr("删除失败=>%1")).arg(msg.msg));
|
||||
} else {
|
||||
QMessageBox::information(this, tr("提示"), QString(tr("删除成功。")));
|
||||
//QMessageBox::information(this, tr("提示"), QString(tr("删除成功。")));
|
||||
ui->tableWidget->removeRow(datas[0]->row());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user