Ticket #3927: TorrcDialog.diff

File TorrcDialog.diff, 1.2 KB (added by ashishnitinpatil, 6 years ago)

The patch file (for both .ui & .cpp combined)

  • src/vidalia/config/TorrcDialog.cpp

    diff --git a/src/vidalia/config/TorrcDialog.cpp b/src/vidalia/config/TorrcDialog.cpp
    index 9871923..027a821 100644
    a b TorrcDialog::saveTorrc() 
    161161      QMessageBox::critical(this, tr("Error"), errmsg);
    162162      return;
    163163    }
    164     if(ui.chkSave->isChecked()) {
    165       if(!tc->saveConf(&errmsg)) {
    166         QMessageBox::critical(this, tr("Error"), errmsg);
    167         return;
    168       }
    169     }
    170164  }
    171165  accept();
    172166}
  • src/vidalia/config/TorrcDialog.ui

    diff --git a/src/vidalia/config/TorrcDialog.ui b/src/vidalia/config/TorrcDialog.ui
    index c72a255..a8276eb 100644
    a b  
    2323     <item row="1" column="0">
    2424      <widget class="QTextEdit" name="teditTorrc"/>
    2525     </item>
    26      <item row="5" column="0">
    27       <widget class="QCheckBox" name="chkSave">
    28        <property name="text">
    29         <string>Save settings. If unchecked it will only apply settings to the current Tor instance.</string>
    30        </property>
    31        <property name="checked">
    32         <bool>true</bool>
    33        </property>
    34       </widget>
    35      </item>
    3626     <item row="0" column="0">
    3727      <layout class="QHBoxLayout" name="horizontalLayout">
    3828       <item>