← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2592: hubframe chat maximization fixed

 

------------------------------------------------------------
revno: 2592
committer: Jacek Sieka <arnetheduck@xxxxxxxxx>
branch nick: dcplusplus
timestamp: Thu 2011-08-11 15:23:00 +0200
message:
  hubframe chat maximization fixed
modified:
  win32/HubFrame.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'win32/HubFrame.cpp'
--- win32/HubFrame.cpp	2011-08-07 16:47:23 +0000
+++ win32/HubFrame.cpp	2011-08-11 13:23:00 +0000
@@ -293,7 +293,14 @@
 	r.size.y -= rm.size.y + border;
 
 	hr.resize(paned, r);
-	paned->maximize(showUsers->getChecked() ? NULL : message);
+
+	if(showUsers->getChecked()) {
+		userGrid->setVisible(true);
+		paned->maximize(NULL);
+	} else {
+		paned->maximize(chat);
+		userGrid->setVisible(false);
+	}
 }
 
 void HubFrame::updateStatus() {
@@ -1187,9 +1194,6 @@
 void HubFrame::handleShowUsersClicked() {
 	bool checked = showUsers->getChecked();
 
-	userGrid->setVisible(checked);
-	paned->setVisible(checked);
-
 	if(checked) {
 		updateUserList();
 		currentUser = 0;