mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
RCS read-only toggling also doesn't work correctly for a long time.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg156626.html git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32745 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
69275b5337
commit
a4231446d2
@ -2967,9 +2967,8 @@ void LyXAction::init()
|
||||
/*!
|
||||
* \var lyx::FuncCode lyx::LFUN_BUFFER_TOGGLE_READ_ONLY
|
||||
* \li Action: Toggle editing mode of the current document between read/write and read-only.
|
||||
* \li Notion: In the ->Readonly mode checks-in/commits the data if the file is under version control.
|
||||
In the Readonly-> mode checkouts the data from repository. \n
|
||||
If these operations fail, buffer won't be toggled.
|
||||
* \li Notion: This function is not allowed if the file is under version control, since
|
||||
read-only flag is often used in version control file locking.
|
||||
* \li Syntax: buffer-toggle-read-only
|
||||
* \li Origin: Lgb, 27 May 1997
|
||||
* \endvar
|
||||
|
@ -273,7 +273,11 @@ void RCS::getLog(FileName const & tmpf)
|
||||
|
||||
bool RCS::toggleReadOnlyEnabled()
|
||||
{
|
||||
return true;
|
||||
// This got broken somewhere along lfuns dispatch reorganization.
|
||||
// reloadBuffer would be needed after this, but thats problematic
|
||||
// since we are inside Buffer::dispatch.
|
||||
// return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user