Skip to content

Commit

Permalink
Document folder made Read Only
Browse files Browse the repository at this point in the history
  • Loading branch information
Amman30 authored Dec 27, 2022
1 parent ff1b2ad commit 6b5d8c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions FrameWorkCode/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6527,6 +6527,14 @@ void MainWindow::LoadDocument(QFile * f, QString ext, QString name)
}
}
}

QString x=finfo.fileName();
if(x.contains("txt")){
curr_browser->setReadOnly(true);
}
else{
curr_browser->setReadonly(false);
}

// Deleting temporarily created CustomTextBrowser
delete b;
Expand Down

0 comments on commit 6b5d8c6

Please sign in to comment.