disable undo limit by default
This commit is contained in:
parent
3090fab089
commit
106bf4281a
|
@ -1098,7 +1098,7 @@ bool SynEditUndoList::fullUndoImposible() const
|
|||
|
||||
void SynEditUndoList::ensureMaxEntries()
|
||||
{
|
||||
if (mItems.count() > mMaxUndoActions){
|
||||
if (mMaxUndoActions>0 && mItems.count() > mMaxUndoActions){
|
||||
mFullUndoImposible = true;
|
||||
while (mItems.count() > mMaxUndoActions) {
|
||||
//remove all undo item in block
|
||||
|
|
|
@ -1348,7 +1348,7 @@ void Settings::Editor::doLoad()
|
|||
else
|
||||
mDefaultEncoding = value("default_encoding", ENCODING_UTF8).toByteArray();
|
||||
mAutoDetectFileEncoding = boolValue("auto_detect_file_encoding",true);
|
||||
mUndoLimit = intValue("undo_limit",1000);
|
||||
mUndoLimit = intValue("undo_limit",0);
|
||||
|
||||
|
||||
//tooltips
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
<item>
|
||||
<widget class="QSpinBox" name="spinMaxUndo">
|
||||
<property name="minimum">
|
||||
<number>100</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>1000000000</number>
|
||||
|
@ -68,6 +68,9 @@
|
|||
<property name="singleStep">
|
||||
<number>50</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>10000</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
|
Loading…
Reference in New Issue