Re: kdevelop lock icon

Milian Wolff <[email protected]> Thu, 23 Dec 2021 18:00:17 +0100
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <1683934.qD0oibjSxh@milian-workstation>
--nextPart2179922.u6lBWgDUYC
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"; protected-headers="v1"
From: Milian Wolff <[email protected]>
To: [email protected], Lou Lipnickey <[email protected]>
Subject: Re: kdevelop lock icon
Date: Thu, 23 Dec 2021 18:00:17 +0100
Message-ID: <1683934.qD0oibjSxh@milian-workstation>
In-Reply-To: <4a11f423-fcd3-5725-6773-92a5a90e9fd6-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
References: <4a10108a-c745-24d6-156b-1e2f390e1874-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org> <1722758.Ua3hCQK81i@milian-workstation> <4a11f423-fcd3-5725-6773-92a5a90e9fd6-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>

On Donnerstag, 23. Dezember 2021 14:56:08 CET Lou Lipnickey wrote:
> thanks so much see attached pic. Cannot edit an html file if file>open is
> used. If a new file is created and saved as html it is editable.
> Very frustrating when this happens. Lou

That would mean the `KateStatusBar::modifiedChanged` default branch is hit, 
see [1]. Can you use a debugger (or recompile with printf statements) to see 
what value you are getting there? My guess would be `m_view->doc()-
>isReadWrite()` is false for some reason for you... Which would mean 
`ReadWritePart::setReadWrite` was called with `false` at some point -> you'd 
have to figure out where and why.

Good luck

[1]: https://invent.kde.org/frameworks/ktexteditor/-/blob/master/src/view/
katestatusbar.cpp#L384

-- 
Milian Wolff
[email protected]
http://milianw.de
--nextPart2179922.u6lBWgDUYC
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEezawi1aUvUGg3A1+8zYW/HGdOX8FAmHEqyEACgkQ8zYW/HGd
OX9rNBAAqfHJRbW3jXIgxc38A5DwOx1O4mfeEEpAf3kh5GQmFD78UcKsgq13zHwa
PyHoep1qm5QZ4j0pGEVkDp0nOfKAMIxd3lFrixkoWqE19hBO4FbaQX90Gt6aaDQY
NxIB56l8+Ehw+rhf1cITdSjrFY1Dv9AjsGJW73+zKtNgQadzU8BHYLglDs0C64hL
WEUzRqAoKgLmbSnGrA1L8+6jU9FMF3PZgLex9KIM1I4qtbL+c1r7M7ebeK5KVTSB
M/vy9M6Sem37fkbiuvj84DM5sZPo+OuatXHRBW5MychIW6iV8m8NOK/9sqa8eMR8
fkNQ8JVeMkX8T5Cem0O6chy/LvLR3daqAbLVarzJRZS0O01v7mvCLUYZGfQozwt+
6lLqR3RVdgpHOgSehcN01V6hc203fsq1MKwTeWgFZFwRli//i7SMFeDKJQOCKrc8
gcECC3ZCfw0WDQgVcXDzOKqCEt2WNSEtANKp7WX+XkPCgAVEYdwn4eK7LoURvbdj
vAq4+d6EcVKh5fYY4rsm2g4UrqPgoIFqGMuqUr0ipWZxZtzPe6bdQMNM2u2qnNeh
ebn441s9DkkVvSO3uyIgW5ttk6Jak7kjQ46ggRuJIhjRGGHoJDBKJZjR/jIgMpTx
gY/i41ZqBKOx7vPSMhK6awFVAX8CR7HP3Y6sxc3HGdU81kHElho=
=46Y4
-----END PGP SIGNATURE-----

--nextPart2179922.u6lBWgDUYC--