Changeset 533212b


Ignore:
Timestamp:
06/18/15 06:43:38 (6 weeks ago)
Author:
yurkis <yurkis@…>
Branches:
master
Children:
c1835e2, 1c393de
Parents:
9d5137e0
Message:

pc-updategui: some minor UI logic changes

Location:
src-qt5/pc-updategui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-qt5/pc-updategui/branchesDialog.cpp

    r9d5137e0 r533212b  
    6161            } 
    6262            mBranches.append(name); 
     63 
    6364        } 
    6465    } 
     
    6869    ui->branchesList->clear(); 
    6970    ui->branchesList->addItems(mBranches); 
     71    if (!mBranches.size()) 
     72    { 
     73        ui->acceptBtn->setEnabled(false); 
     74    } 
     75    else 
     76    { 
     77        ui->branchesList->setCurrentRow(0); 
     78    } 
    7079 
    7180    this->setEnabled(true); 
  • src-qt5/pc-updategui/branchesDialog.ui

    r9d5137e0 r533212b  
    7878     </item> 
    7979     <item> 
    80       <widget class="QPushButton" name="pushButton"> 
     80      <widget class="QPushButton" name="acceptBtn"> 
    8181       <property name="text"> 
    8282        <string>Change branch</string> 
     
    9898 <connections> 
    9999  <connection> 
    100    <sender>pushButton</sender> 
     100   <sender>acceptBtn</sender> 
    101101   <signal>clicked()</signal> 
    102102   <receiver>BranchesDialog</receiver> 
Note: See TracChangeset for help on using the changeset viewer.