Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-885

Validator function set for custom page is not being executed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 2.0.3
    • General
    • None
    • Fedora 24

      Setting function via installer.setValidatorForCustomPage seems to work as installer.setValidatorForCustomPageRequested signal is fired but clicking next button on the custom page does nothing even when dummy validation function just returns true.

      Sample script:

      function logValidatorForCustomPageRequested(component, name, callbackName) {
          console.log(component);
          console.log(name);
          console.log(callbackName);
      }
      
      function validate() {
          console.log(">>> Validating...");
          return true;
      }
      
      function Component() {
          component.loaded.connect(this, Component.prototype.loaded);
          if (!installer.addWizardPage(component, "SomeWidget", QInstaller.ReadyForInstallation)) {
              console.log(">>> SomeWidget not added");
          }
          installer.setValidatorForCustomPageRequested.connect(this, logValidatorForCustomPageRequested);
      }
      
      Component.prototype.loaded = function () {
          console.log(">>> Loaded: " + component.name);
          installer.setValidatorForCustomPage(component, "SomeWidget", validate);
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            installerteam Installer Team
            przemal Przemysław Palacz
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes