Skip to content

Commit

Permalink
Auffrischen der Directory-Anzeige nach Dateioperationen korrigiert.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammingHobby committed Oct 29, 2022
1 parent 059ea5e commit 14b697b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CIFE/Sources/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ void MainWindow::onDelete(wxCommandEvent &event) {
}

cpmtools->deleteFile(files);
onRefresh(event);
showDirectory();
}
}

Expand All @@ -510,7 +510,7 @@ void MainWindow::onRename(wxCommandEvent &event) {
int newUser = dialog->getNewUser();
newName = wxString::Format(("%i"), newUser) + ":" + newName;
cpmtools->renameFile(oldName, newName);
onRefresh(event);
showDirectory();
}

wxDELETE(dialog);
Expand Down Expand Up @@ -610,7 +610,7 @@ void MainWindow::onAttributes(wxCommandEvent &event) {

if (dialog->ShowModal() == wxID_OK) {
cpmtools->setFileAttributes(name, dialog->getAttributes());
onRefresh(event);
showDirectory();
}

wxDELETE(dialog);
Expand All @@ -626,7 +626,7 @@ void MainWindow::onProtections(wxCommandEvent &event) {

if (dialog->ShowModal() == wxID_OK) {
cpmtools->setFileProtections(name, dialog->getProtections());
onRefresh(event);
showDirectory();
}

wxDELETE(dialog);
Expand Down Expand Up @@ -688,5 +688,4 @@ void MainWindow::onDropFiles(wxDropFilesEvent &event) {
}
}


// --------------------------------------------------------------------------------

0 comments on commit 14b697b

Please sign in to comment.