Formatting
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user