-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PVR] : 4 fixes related to chanel icons #4227
Conversation
@opdenkamp @xhaggi for review please |
@t-nelson splitting ?? how ?? they are all related to the same files and wont merge/build all i think |
http://stackoverflow.com/questions/4307095/git-how-to-split-up-a-commit-buried-in-history In general we want at least one commit for each distinct feature added/bug fixed. You can make more if it's logical. They can always be squashed later. Multiple fixes per commit are a complete PITA to review and even further pain revert later if there's a problem with only part of it. |
@t-nelson ok will know for the feature and won't happen again :) . I have not splitted the first 3 fixes in separated commits; Maybe for this times lets first @opdenkamp and @xhaggi review it, i guess they will figure out easily this pr. If not i ll got to the boring, time consuming tasks of splitting it and realeasing 1 by 1 .. Regards |
before i have a look at it: please fix up the cosmetics. we use 2 spaces, no tabs |
@xhaggi it was like this, so by adding bForceUserSetIconUpdate i m sure to not break anything. |
@xhaggi , @opdenkamp you want me to split it ? |
yes please split your commit in logical parts and apply the cosmetics. |
@xhaggi i already applied the cosmetics . Will check your link concerning the commit splitting thanks |
Force push |
To elaborate. When you force push the branch to your repo, github will automatically update this PR. |
@xhaggi @t-nelson @opdenkamp ok hope it is better now .. |
Thanks for splitting this up. Would you mind dropping the "Fix Nx:" prefixes from the messages and prefixing them "[PVR]" instead. |
@t-nelson done |
Sorry but could you please add fix: to the commit message and use a short one line message + separated details if needed.
|
Hehe. I think maybe we need an "XBMC git guidelines" in contributing.md. |
1st commit (password prompt appears twice) is fine with me |
@alexmaloteaux could you please extract the first commit into a separate PR so we could merge it independently. |
Something else seems wrong though. We shouldn't be prompting the user unless bPromptUser is set though, no? |
@t-nelson we don't need to call IsMasterLockUnlocked() as IsProfileLockUnlocked() do it for us |
Ah I missed the master/profile difference. Fine by me. @opdenkamp's button On Fri, Feb 21, 2014 at 1:52 PM, Sascha Woo notifications@github.comwrote:
|
continue; | ||
{ | ||
//check if the file exist or empty it | ||
if(VerifyChannelIconPath(groupMember.channel)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@xhaggi @opdenkamp regarding how the userseticon flag was used in SetIconPath before the PR. i think it is safe to remove the force flag and just make one little change as in the 5b452bd commit |
I'll review over the week end. |
@@ -753,6 +750,11 @@ bool CPVRChannel::IsUserSetIcon(void) const | |||
return m_bIsUserSetIcon; | |||
} | |||
|
|||
bool CPVRChannel::IsIconExists() const | |||
{ | |||
return (CFile::Exists(IconPath())); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
could you please squash the commits |
@alexmaloteaux please squash the history down to one commit per fix and we'll get this in. |
@t-nelson ok like this ? |
Fine by my eye. @opdenkamp, @xhaggi, A last pass by one of you, please. jenkins build this please |
@alexmaloteaux finally please squash commit 19e3053 into 165578b |
ok for gotham when squashed |
@alexmaloteaux if you don't have time let me know. i will cherry pick your stuff and finish things so we can merge it. |
@xhaggi i don't get it is it merged ? |
…ld be used too when searching icons
@xhaggi ok done ; read the comments i think it is better to keep updatechannel like this |
sorry but you squashed different commits into one. (the last one in the one before) |
@xhaggi one per fix with all the cosmetics and so on included in the last one |
@xhaggi the older commits history is deleted due to -force i think; only way is the boring part of git rebase ; git -p add ; manual stuff ; ... i guess; do you have an easier solution ? sorry fir misunderstood .. |
@alexmaloteaux now you have to do a manual part. you could do a git rebase and edit the corresponing commits then c/p your changes and continue rebasing or you could start from scratch, rename your local branch, create a new one with the same name, c/p your changes then commit and so on and later do a force push. |
@alexmaloteaux BTW the commit history is not deleted, but you have to use a gui client for git which supports to show commits without branch assignments. or you know the commit id ;) |
@xhaggi theres is 3 commit (after final squash) and 3 fix; maybe just editing final commit messgae will do ; otherwise too boring .. :) |
Just merge it, no point in testing the guy's gitfu. |
i did the magic git rebase/split stuff in PR #4477 |
We aren't testing his git fu. We're keeping our history clean. It makes You never need a GUI to do something with git. Use git reflog to find the |
This pr fixes 4 issues related to pvr channels icon :
This is resolved by removing and uneeded call to g_passwordManager.IsMasterLockUnlocked in CGUIDialogPVRChannelManager::OnClickButtonChannelLogo
2)When user set a user defined logo; the iconpath is emptied upon xbmc restart. This is fixed by setting the userseticon flag to true when user choose its own icon.
When the icon path related file does not exists anymore, it should be emptied. This is particulary boring when UserSetIcon is set because it will never been emptied regarding how updatefromclient works. This is fixed by veryfing if the file exists in CPVRChannelGroup::SearchAndSetChannelIcons
When user set a custom name for a channel in Channel manager, SearchAndSetChannelIcons should also search for an icon file based on that name.