Formatting

This commit is contained in:
Jonas Kvinge
2021-07-11 09:49:38 +02:00
parent a6742d401c
commit e48b7d83a3
161 changed files with 370 additions and 369 deletions

View File

@@ -130,7 +130,7 @@ void FileView::FileUp() {
// Is this the same as going back? If so just go back, so we can keep the view scroll position.
if (undo_stack_->canUndo()) {
const UndoCommand *last_dir = static_cast<const UndoCommand*>(undo_stack_->command(undo_stack_->index()-1));
const UndoCommand *last_dir = static_cast<const UndoCommand*>(undo_stack_->command(undo_stack_->index() - 1));
if (last_dir->undo_path() == dir.path()) {
undo_stack_->undo();
return;
@@ -195,8 +195,7 @@ void FileView::ItemDoubleClick(const QModelIndex &idx) {
}
FileView::UndoCommand::UndoCommand(FileView *view, const QString &new_path)
: view_(view) {
FileView::UndoCommand::UndoCommand(FileView *view, const QString &new_path) : view_(view) {
old_state_.path = view->model_->rootPath();
old_state_.scroll_pos = view_->ui_->list->verticalScrollBar()->value();