mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
committed by
GitHub
parent
f3f4610ba4
commit
34d30ed031
@@ -146,10 +146,9 @@ QValidator::State Private::FileSystemPathValidator::lastValidationState() const
|
||||
return m_lastValidationState;
|
||||
}
|
||||
|
||||
QValidator::State Private::FileSystemPathValidator::validate(QString &input, int &pos) const
|
||||
QValidator::State Private::FileSystemPathValidator::validate(QString &input, [[maybe_unused]] int &pos) const
|
||||
{
|
||||
// ignore cursor position and validate the full path anyway
|
||||
Q_UNUSED(pos);
|
||||
// we ignore cursor position and validate the full path anyway
|
||||
|
||||
m_lastTestResult = testPath(Path(input));
|
||||
m_lastValidationState = (m_lastTestResult == TestResult::OK)
|
||||
|
||||
Reference in New Issue
Block a user