Skip to content

Commit

Permalink
Github Issue #12: Setting up defaults cursor positions for loading do…
Browse files Browse the repository at this point in the history
…cuments
  • Loading branch information
AngryFender committed Sep 5, 2023
1 parent 3c50462 commit 1def1e9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions views_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ QString ViewsHandler::getFileContent(QFile& file)
{
QTextStream stream(&file);
content = stream.readAll();

}
file.close();
return content;
Expand All @@ -253,7 +252,6 @@ void ViewsHandler::setCurrentDocument(const QFileInfo &fileInfo)
disconnectDocument();

//set current document to textview

const QString &filePath = fileInfo.absoluteFilePath();
const QString &fileName = fileInfo.baseName();
currentDocument = recentFileDocumentMap.value(filePath);
Expand Down Expand Up @@ -297,7 +295,7 @@ void ViewsHandler::fileDisplay(const QModelIndex& index)
viewText->update();

// viewText->initialialCursorPosition();
viewText->verticalScrollBar()->setSliderPosition(0);
// viewText->verticalScrollBar()->setSliderPosition(0);
}

void ViewsHandler::fileSaveHandle()
Expand Down

0 comments on commit 1def1e9

Please sign in to comment.