<p dir="auto">I have noticed that even when I mark a document "readonly" in the UI (for example via the document menu), when Geany detects a file change, the requester proposes me to overwrite it anyway.</p>
<p dir="auto">This looks wrong, I mark the file read only because I want to avoid writing to it by mistake.</p>
<p dir="auto">I often open the same file in two windows and mark it read only in one of those, I find this better than the split window (which I also use sometimes). I happened to overwrite a file by mistake due to a stray click on the overwrite button, so I decided to create this patch.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/3142'>https://github.com/geany/geany/pull/3142</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/geany/geany/pull/3142/commits/ee5e301ddae35316b0bb453bd0e8d594b19e13ea" class="commit-link">ee5e301</a>  Hide overwrite button for readonly documents.</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/geany/geany/pull/3142/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3142/files#diff-90e39f5f0dfc1344b1b22db34414d3623c2d53cfedcb89e870e24fbb55c93d36">src/document.c</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/3142.patch'>https://github.com/geany/geany/pull/3142.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/3142.diff'>https://github.com/geany/geany/pull/3142.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3142">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6WZVAVSXPIL2KWBCTVCHQD3ANCNFSM5R3YOYLQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJZK6UVVUIRQ5B2WO4LVCHQD3A5CNFSM5R3YOYL2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4RUOFDPA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/pull/3142</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3142",
"url": "https://github.com/geany/geany/pull/3142",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>