删除新建成功时不提示。

This commit is contained in:
2026-02-02 21:28:25 +08:00
parent 5a659d4f01
commit e09cf859b8
2 changed files with 8 additions and 4 deletions

View File

@@ -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());
}
}